Send out new-style notifications when the profile photos have been downloaded.

The User Manager tries to live in the brave new world of new-style notifications,
however the ProfileInfoCache only notifies the old-style NotificationService that
the profile photos have finished being loaded from disk/downloaded from gaia.

BUG=354533,340478

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270387 0039d316-1c4b-4281-b951-d872f2087c98
Disable debugging code in instrumented libnspr4. ThreadSanitizer reports data races on debug vars.

BUG=313751
R=earthdok@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270388 0039d316-1c4b-4281-b951-d872f2087c98
Suppress another lock inversion from NSS

BUG=372807
TBR=wtc@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270389 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry] Fix a PlatformBackend that leaked across the API to tools/perf.

Also:
1. PowerMetric will now work on Android (it was using the host platform before).
2. CustomizeBrowserOptions actually receives a BrowserOptions object now.

BUG=358970

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270390 0039d316-1c4b-4281-b951-d872f2087c98
Reland: Mac Video Capture Device: split VCD into VCD and Factory.

Reland of the mentioned CL, that hit an internal bot due
to a test needing the flag |kUseFakeDeviceForMediaStream|.


Original CL message -----------------------------------------------
Mac Video Capture Device: split VCD into VCD and Factory.

VideoCaptureDeviceMac includes factory and non-factory parts.
This CL splits them into VideoCaptureDeviceMac and 
VideoCaptureDeviceFactoryMac. The latter inherits the previous
class' static methods: Create(), GetDeviceNames() and 
GetDeviceSupportedFormats().

All video factory code previously in MediaStreamManager is
moved into VideoCaptureFactory. This includes the use
of the flag |kUseFakeDeviceForMediaStream|.
This flag is moved correspondingly into media_switches.cc --
(but note that this flag is still used in MediaStreamManager for 
the Fake Audio parts). File media_switches.cc is
included in several test files where the flag is used.


VideoCaptureDeviceTest is splitted as well into:
a) Tests that were exercising only the FakeVCD 
(FakeVideoCaptureDeviceTest).
b) All other tests, that use the underlying OS webcam.
This VideoCaptureDeviceTest gets a Factory and uses it
instead of static methods.

A unit test is added to VCDFMac, doing little for the moment
but I'm planning to add support for testing at least the
blacklisting -- req from rsesek@ in another CL.
-------------------------------------------------------------------

TBR= perkj@chromium.org, dalecurtis@chromium.org, jochen@chromium.org

BUG=288562, 323913, 255552

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270391 0039d316-1c4b-4281-b951-d872f2087c98
Fix compilation error for https://codereview.chromium.org/282513004

Win compilers complained about
track_run_iterator.cc(138) : warning C4800: 'uint32' : forcing value to bool 'true' or 'false' (performance warning)

More in http://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Win/builds/24400

This CL uses the "!" operator to force conversion to bool.

This CL will be TBR-ed, as code-wise the change is trivial, and an alternative to a revert.

TBR=acolwell@chromium.org,scherkus@chromium.org
BUG=367786

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270392 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry] Speed up page_cycler on android.

Down to 3m22 (without the other optimizations..)
/proc/pid/smaps is kind of large.
It was only used by old style perf tests downstream, long gone
in favor of Telemetry.
Use "showmap %pid" directly, which crunches the data in the device.
Also, while at it, remove GetMemoryUsageForPackage: no longer used.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270395 0039d316-1c4b-4281-b951-d872f2087c98
Create //components/google and componentize GoogleSearchMetrics

First step toward //chrome/browser/google componentization.

BUG=372731,371466
TBR=thakis

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270396 0039d316-1c4b-4281-b951-d872f2087c98
Update WebFrameTestProxy and WebTestProxy to mostly follow Chrome style.

This converts most things except parameter and variable names.

BUG=360024

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270397 0039d316-1c4b-4281-b951-d872f2087c98
DevTools: return application/json mime type for *.json files

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270398 0039d316-1c4b-4281-b951-d872f2087c98
Reduce creation of ViewsDelegate

By consolidating override of OnBeforeWidgetInit that finds shell many
of the places that were setting a viewsdelegate no longer need to.

Also, made AshTestHelper install a ViewsDelegate so that tests don't have.

Because of removed an include of views_delegate from ash_test_helper I had to update some includes.

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

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270290

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270399 0039d316-1c4b-4281-b951-d872f2087c98
Bluetooth UUIDs should be case-insensitive.

BUG=373096
TEST=device_unittests
R=keybuk@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270400 0039d316-1c4b-4281-b951-d872f2087c98
Add get_syzygy_binaries.py script.

This adds a script for retrieving and installing Syzygy binaries. Currently binaries are checked in to an SVN repository and installed via a DEPS dependency. The Syzygy team is moving to git, and archiving their binaries on Google Common Data Storage. A later CL will move to using this script, installing the binaries via a DEPS hook.

BUG=
R=siggi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270401 0039d316-1c4b-4281-b951-d872f2087c98
Correct Preview plt UMA logging. Preview doesn't use data_compression_proxy anymore. But the current logging is completely based on that flag. This change removes the dependency on that flag.

Also removing PREVIEW_WAS_SHOWN, as we have no way of figuring out that the url came from preview.

BUG=371892

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270402 0039d316-1c4b-4281-b951-d872f2087c98
Roll Breakpad from r1325 to r1331.

This pulls in the following CLs:
 - r1326 FD leaks and handle errors better
 - r1327 Add required build options to correctly target XP
 - r1328 Fix the documentation for MinidumpFileWriter::Open()
 - r1329 [Mac] Remove unused host_info call and supporting calls.
 - r1330 [MIPS] Fix core dump related unit tests for Android on MIPS
 - r1331 Fix x86_64 Android build after user_fpregs_struct was added to /sys/user.h in newer NDKs

BUG=346626

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270404 0039d316-1c4b-4281-b951-d872f2087c98
Use base::STLSet* in place of std::set_* for simplicity.

BUG=254066

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270405 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Build android tools as PIE and add a wrapper for ICS

- Make Android tools build as position independent executable by
  default, as it now required by Android.
- Introduce a wrapper for running PIE on Android ICS (its linker
  doesn't support PIE).
- Add the plumbing for running the PIE wrapper in the test/telemetry
  python scripts.

BUG=373219
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270406 0039d316-1c4b-4281-b951-d872f2087c98
Small changes to format of verified contents files from webstore

-Switch from hexencoding to base64url encoding for the
treehash root hashes, because it saves a few bytes for each file
listed.

-To accomodate future improvements in the format, we're wrapping
the old format with a list plus outer dictionary. E.g. moving from

{ "payload": " ... ", "signatures": [ ... ] }

to

[ 
  {
    "description": " ... ",
     "signed_content": { "payload": " ... ", "signatures": [ ... ] }
  }
]

This way the server can offer signatures in both new and old formats, and
old clients will just use the old format and ignore anything else.

BUG=373063

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270407 0039d316-1c4b-4281-b951-d872f2087c98
Add details (where missing) for histograms and remove a few that are not worth providing more details for.

BUG=None

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

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