Initial commit of Suggestions service.

BUG=None
Test=SuggestionsServiceTest

Review URL: https://codereview.chromium.org/142193007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249862 0039d316-1c4b-4281-b951-d872f2087c98
Pepper: Split LoadNaClModuleCommon, trusted plugin

LoadNaClModuleCommon() handles loading modules in multiple cases:
  - On the main thread, when nexes are loaded.
    This is LoadNaClModule().
  - On a background thread, when running a pexe translator.
    This is LoadHelperNaClModule().

This change splits LoadNaClModuleCommon() based on which case above it
corresponds to. This is because once we move to Chromium IPC from SRPC for
loading the module, we'll have to effectively make LoadNaClModule asynchronous.

BUG=333950

Review URL: https://codereview.chromium.org/145093002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249863 0039d316-1c4b-4281-b951-d872f2087c98
Adds a new ContentSettingType for Android app banners

These settings will store information about what Play
Store apps a site has popped up a banner for.

* The ContentSetting will store a DictionaryValue of
<package name, is allowed> pairs.  If anything except a
DictionaryValue is found in the setting, it is wiped out.

* Once a banner is dismissed, it will be permanently blocked 
from being shown again by storing it in the DictionaryValue
for the site.

* We limit the number of apps a site is allowed to show a
banner for to just 3 to avoid situations where a site tries
inundating a user with banners for different apps.

* These settings are destroyed when the user chooses to
clear their site data and are not meant to be directly
visible from the UI.

BUG=341556

Review URL: https://codereview.chromium.org/132333023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249864 0039d316-1c4b-4281-b951-d872f2087c98
Fixes chromium build when archiving the debug nacl_irt

Now that tls_edit is used as a post process to fix up the TLS for the
nacl_irt, we also need to run it on the debug version of the nacl_irt
so that we can archive away a working version of the debug nacl_irt.

This change is needed to fix the build bots when archiving
the nacl_irt.

R=mcgraphr@chromium.org, sbc@chromium.org
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3127
NOTRY=true

Review URL: https://codereview.chromium.org/153343004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249865 0039d316-1c4b-4281-b951-d872f2087c98
undef SK_SUPPORT_LEGACY_ONLOCKPIXELS since all subclass now support the new virtual onNewLockPixels

BUG=

Review URL: https://codereview.chromium.org/132803011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249867 0039d316-1c4b-4281-b951-d872f2087c98
Add git cl format presubmit warning for extension and apps.

Upon patch upload 'git cl format' is run on the diff and outputs a
warning if the diff has style violations, saving manual review time for
coding style.

BUG=none
NOTRY=true

Review URL: https://codereview.chromium.org/153953011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249868 0039d316-1c4b-4281-b951-d872f2087c98
Remove an exception when using telemetry without cloud storage rights.

When running telemetry on my personal laptop (without any specific rights), using a open-source flow, I get the error below. 

The code assumes the access to cloud storage to read the credentials file. Page cycler seems to work without credentials and skip page that could not be accessed.

This CL removes the dependency to the could by ignoring the credentials file.

% python run_measurement page_cycler page_sets\top_10.js

Traceback (most recent call last):
  <module> at tools\perf\run_measurement:128
    sys.exit(Main())
  Main at tools\perf\run_measurement:124
    return runner.Run(new_perf_path, page_set_filenames)
  Run at tools\telemetry\telemetry\page\page_test_runner.py:39
    page_set_filenames)
  ParseCommandLine at tools\telemetry\telemetry\page\page_test_runner.py:163
    ps = self.GetPageSet(test, page_set_filenames)
  GetPageSet at tools\telemetry\telemetry\page\page_test_runner.py:102
    return page_set.PageSet.FromFile(page_set_arg)
  FromFile at tools\telemetry\telemetry\page\page_set.py:86
    return cls.FromDict(data, file_path)
  FromDict at tools\telemetry\telemetry\page\page_set.py:90
    return cls(file_path, data)
  __init__ at tools\telemetry\telemetry\page\page_set.py:60
    os.path.join(self._base_dir, self.credentials_path))
  GetIfChanged at tools\telemetry\telemetry\page\cloud_storage.py:183
    _RunCommand(['cp', url, file_path])
  _RunCommand at tools\telemetry\telemetry\page\cloud_storage.py:110
    raise CredentialsError(gsutil_path)


The error is replaced by:

% python run_measurement page_cycler page_sets\top_10.json
WARNING:root:Cannot retrieve credential file: data/credentials.json


R=tonyg@chromium.org, nduca@chromium.org

BUG=333609

Review URL: https://codereview.chromium.org/148363002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249869 0039d316-1c4b-4281-b951-d872f2087c98
Don't call RenderProcessHostImpl::WebRtcLogMessage() if ENABLE_WEBRTC=0.

BUG=341122

Review URL: https://codereview.chromium.org/140093006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249870 0039d316-1c4b-4281-b951-d872f2087c98
[GCM] Add experiment and startup logic for partial rollout

The experiment controls whether the GCMProfileService should be suppressed
or force created at sync startup time. If no experiment is present, the default
is for Canary/Dev clients to be able to enable the GCMProfileService lazily,
and other clients to be unable to create it at all.

BUG=284553

Review URL: https://codereview.chromium.org/152633006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249871 0039d316-1c4b-4281-b951-d872f2087c98
Build the PNaCl IRT shim with PNaCl + NaCl DEPS bump r12710 -> r12726

The ARM one is completely identical (already built with
PNaCl), the x86-32 version is a bit smaller, and the x86-64
one is a bit bigger.

Drops a PNaCl dependency on GCC.

Pull in untrusted.gypi change w/ NaCl DEPS bump r12710 -> r12716

This pulls in the following Native Client changes:

r12711: (bradnelson) Don't write out .pyc files on the bots.
r12712: (halyavin) Fix handle leak in SimpleRevConnection objects.
r12713: (halyavin) Fix bots failures.
r12714: (yyanagisawa) Make try-except for finding gomacc more explicit.
r12715: (halyavin) Fix incorrect code that causes use-after-free.
r12716: (jvoung) Replace force_arm_pnacl w/ pnacl_native_biased and allow building nlibs.
r12717: (mcgrathr) toolchain_build: Update gdb to 7.7 release
r12718: (noelallen) Add bionic upload
r12719: (dschuff) toolchain_build_pnacl: Add support for cmake, clang, and sanitizers
r12720: (jvoung) PNaCl: Update Clang revision in pnacl/COMPONENT_REVISIONS
r12721: (mseaborn) Remove old sel_main_chrome.h/nacl_chrome.h interface variants
r12722: (jvoung) Add a couple more mnemonics to pnacl-ld (-u, --trace, --library, etc.)
r12723: (dschuff) PNaCl driver: use module-splitting by default for offline translation.
r12724: (dyen) IRT TLS now depends on tls_edit instead of compiling in changes.
r12725: (teravest) NaCl: Remove bad comment in sel_main_chrome.c
r12726: (jvoung) Fix arm rules for pnacl_native_biased in untrusted.gypi.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3784
R=bradnelson@google.com, dschuff@chromium.org

Review URL: https://codereview.chromium.org/137623019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249872 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249873 0039d316-1c4b-4281-b951-d872f2087c98
[GCM] Adding retry logic to the Checkin Request

* adding retry logic based on exponential backoff
* adding Status enum to properly inform of the state of CheckinRequest
* adding more tests for retries and error conditions

BUG=284553

Review URL: https://codereview.chromium.org/141063005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249876 0039d316-1c4b-4281-b951-d872f2087c98
Fix segv in ui::Clipboard::WriteObjects() in clipboard_aurax11.cc

Check that the vectors received from the renderer are not empty before
accesssing specific elements.

BUG=341510

Review URL: https://codereview.chromium.org/144003023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249877 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 166732:166741

http://build.chromium.org/f/chromium/perf/dashboard/ui/changelog_blink.html?url=/trunk&range=166733:166741&mode=html
TBR=
BUG=

Review URL: https://codereview.chromium.org/135513007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249878 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249879 0039d316-1c4b-4281-b951-d872f2087c98
Omnibox: Pass Input Box Type to AutocompleteClassifier

(where possible and reasonable)

Previously, the input box type (a.k.a. current page classification)
(search results page doing search term replacement,  arbitrary URL,
new tab page omnibox, new tab page fakebox, etc.) was not passed to
AutocompleteClassifier.  This adds plumbing to pass the variable to
the classifier in some cases.  (Some other cases I decided were too
much of a hassle to fix, and not important.)

TBR=brettw
for changes to chrome/browser/tab_contents/render_view_context_menu.cc

BUG=265678

Review URL: https://codereview.chromium.org/138173007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249880 0039d316-1c4b-4281-b951-d872f2087c98
Use per-user nssdb in onc certificate importer

Instead of always using singleton NSSCertDatabase, pass the
database to use as an argument to CertificateImporter::ImportCertificates

BUG=315343

Review URL: https://codereview.chromium.org/148183013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249881 0039d316-1c4b-4281-b951-d872f2087c98
Views: Make it possible to flip the ok/cancel button order for dialogs.

BUG=339261

Review URL: https://codereview.chromium.org/148193003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249882 0039d316-1c4b-4281-b951-d872f2087c98
[Autofill] Minor style cleanup.

BUG=none
TEST=none
R=estade@chromium.org

Review URL: https://codereview.chromium.org/137663009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249883 0039d316-1c4b-4281-b951-d872f2087c98
Cast: Add rtp_timestamp to EncodedVideoFrame and update logging

Review URL: https://codereview.chromium.org/141443010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249885 0039d316-1c4b-4281-b951-d872f2087c98