Add LOCAL_ prefix to non-UMA histogram macros.

This makes it harder to accidently use the wrong
macro.

Also, removes the D* variants of the macros and
associated DebugNow() function. These were rarely
used and removing them removes clutter from the
header file. Existing uses converted to be behind
NDEBUG ifdefs.

No functional changes except for a fix to the
code in content_based_thumbnailing_algorithm.cc
which was incorrectly using a ternary operator for
the histogram name (which doesn't work since the
macros cache the histogram object) and removal
of local histograms Spellcheck.SuggestTime and
Spellcheck.InitTime per groby@.

Since this is an API rename, TBR'ing downstream
owners.

BUG=311349
TBR=groby@chromium.org,zea@chromium.org,jeremy@chromium.org,reveman@chromium.org,agl@chromium.org,jam@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#291840}
Cleanup: remove HomeCardLayoutManager::Delegate.

This class is simply unnecessary.

BUG=None
R=oshima@chromium.org
TEST=athena_unittests passes

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

Cr-Commit-Position: refs/heads/master@{#291841}
Remove implicit conversions from scoped_refptr to T* in chrome/browser/local_discovery/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

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

Cr-Commit-Position: refs/heads/master@{#291842}
Remove chrome dependencies from app_window_api.cc

Add OpenDevToolsWindow() and IsCurrentChannelOlderThanDev() to AppsClient.

BUG=387288

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

Cr-Commit-Position: refs/heads/master@{#291843}
Remove implicit conversions from scoped_refptr to T* in chrome/browser/extensions/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

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

Cr-Commit-Position: refs/heads/master@{#291844}
Disable sync in EphemeralAppBrowserTests on Windows due to flakiness

BUG=401028
TEST=browser_tests

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

Cr-Commit-Position: refs/heads/master@{#291845}
Aggregate consequtive rescan request as much as possible.

- Revived AsyncUtil.Aggregation, which was used to aggregate consecutive run requests into one.
- Aggregated consecutive re-scan request using the aggregator described above.

BUG=316050
TEST=confirmed manually

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

Cr-Commit-Position: refs/heads/master@{#291846}
Suppress a deadlock report through media::Pipeline::GetMediaTime.

BUG=407452
TBR=xhwang@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#291847}
Add Suites results to Speedometer

Display the results for the individual benchmark suites, this is
acheived by storing the full results set and quering it after
the benchmark has finished.

BUG=389257

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

Cr-Commit-Position: refs/heads/master@{#291848}
Fix font rendering in experimental app list tiles.

This CL fixes font rendering for experimental app list tiles by setting
a background.

BUG=406989

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

Cr-Commit-Position: refs/heads/master@{#291849}
Remove implicit conversions from scoped_refptr to T* in content/browser/service_worker

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

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

Cr-Commit-Position: refs/heads/master@{#291850}
Suppress an uninitialized value in KeyboardLayoutManager::SetChildBounds.

BUG=407467
TBR=bshe@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#291851}
Fix Profile* lifetime issues in Chrome's AppListViewDelegate

Currently AppListViewDelegate can hold on to references to a destroyed
Profile*. It's managed to escape crashing in most cases so far because
the LocalState pref is updated for the next time the app launcher is
shown. However, if the profile the app launcher is first created for is
ever deleted in the same session, then a crash usually follows (but
doesn't always create a crash dump, due to a corrupt stack).

This decouples the Profile from the AppListViewDelegate constructor to
make it clear the lifetimes are not in step. Then "SetProfile" correctly
tears down any references to an old profile, before setting a new one.

When the app list's active profile is deleted, the AppListViewDelegate
is destroyed by forcibly closing/destroying the AppList's widget via a
new method AppListServiceImpl::DestroyAppList().

BUG=392763, 403647, 373689, 405827
TEST=(windows) Show the app list, right-click an app and "uninstall".
Leave the uninstall dialog open. Switch to a chrome://settings in a
browser and delete the profile being shown in the app list. App list
should close.

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

Cr-Commit-Position: refs/heads/master@{#291852}
Linux: install-debian.wheezy.sysroot.py should use build/detect_host_arch.py to detect the host architecture.

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

Cr-Commit-Position: refs/heads/master@{#291853}
Make app list ContentsView scroll vertically in experimental app list.

This CL makes the app list contents view scroll vertically for the
experimental app list rather than horiztonally.

BUG=406222

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

Cr-Commit-Position: refs/heads/master@{#291854}
Use a background for the main search box in the experimental app list.

This CL makes the DummySearchBoxBackground the standard SearchBoxView
background when using the experimental app list.

BUG=406222

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

Cr-Commit-Position: refs/heads/master@{#291855}
Added proper extension manifest parser for launcher_page.

Previously, AppListViewDelegate manually parsed the manifest. We now
have a proper parser class that generates appropriate errors for invalid
launcher_page fields in a manifest, with full valid and invalid unit
tests.

BUG=399131

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

Cr-Commit-Position: refs/heads/master@{#291856}
Update V8 to version 3.29.17 (based on bleeding_edge revision r23372).

TBR=vogelheim@chromium.org
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#291857}
[refactor] Split up a large (5k lines) unit-test into multiple files.

BUG=398959

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

Cr-Commit-Position: refs/heads/master@{#291858}
Video Player: Support seek on casting

BUG=397393
TEST=manually tested

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

Cr-Commit-Position: refs/heads/master@{#291859}