sync: always StopModels in DTC if aborting load.
BUG=352324

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270560 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix include in metrics_reporting_scheduler.cc

BUG=371469

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270561 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[SyncFS] Removed unused method UpdateSyncEnabled in SyncEngine class.


BUG=347425

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270574 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Let SyncManagerFactory create different types of sync managers according to
constructor param.

BUG=362679

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270576 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Check BrowsingInstance before swapping prerenders.

Even if a WebContents does not have an opener, if there is another WebContents
in the BrowsingInstance, swapping processes can break pages which expect script
access.

BUG=118294

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270581 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Allows arbitrary scale factor in ImageSkia.

Previously ImageSkia requests the current device scale factor
and then pray everything is okay. Now it fetches the best fitting
scale factor and then scale the image on ImageSkia side.

BUG=372212
R=oshima@chromium.org, ananta@chromium.org
TBR=msw@chromium.org, jyasskin@chromium.org
TEST=ui_unittests --gtest_filter='ImageSkiaTest.*'

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Remove FileCache::GetIterator

RemoveStaleCacheFiles's role is changed as FileCacheEntry will be always accompanied by ResourceEntry in the new world.

BUG=275271
TEST=unit_tests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270583 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
UMA tracking for disabling mirror.

BUG=357693

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270584 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Use resources in common / cros

This is step2 to cleanup resources in chrome/app/theme.
Resources were updated in https://codereview.chromium.org/285203003/

Next step(3): remove obsolete files.

BUG=373482
R=estade@chromium.org
TBR=cpu@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270585 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Store user pref in local state after user chooses to optin to UMA in session crash bubble. 

BUG=371961

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270588 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Restored an option to enable enhanced bookmarks experiment from Finch. It was removed when we switched to Chrome sync enabled experiment. Now we need both Chrome sync experiment for logged in users and Finch for the rest.

BUG=321393
TBR=rlarocque

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270589 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
ChromeVox migration: closure library.

This adds a few files from the closure library that ChromeVox uses.
The files are put under
chrome/third_party/chromevox/third_party/closure-library to make it clear
that these are for use by chromevox only.  The intention is to keep this
subset small, over time, replace current uses in ChromeVox with native
JavaScript equivalents.  There are already some local modifications to the
files to get rid of some large dependencies.  See README.chromium for more
details.

BUG=371692
R=dmazzoni@chromium.org, dtseng@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270591 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This adds a capability that we have on desktop NTP, which is to mark a website as forced for the purpose of snapshotting, meaning that if Chrome does not have a thumbnail now for a given URL, it will take note of the "forced" URL, and will take a snapshot next time it visits the site.

BUG=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270593 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
[Refactor] Consolidate the logic for whether a widget can be activated.

This is a first step towards giving tooltips their own WindowTreeHosts on Linux.

BUG=353533
TEST=None

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270597 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Drop non-standard user gesture requirement from notification.requestPermission

BUG=274284
R=jww@chromium.org,felt@chromium.org,atwilson@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270601 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
drive: Fix operations to return up-to-date cache state

DownloadOperation and GetFileForSavingOperation return ResourceEntry as a part of their results.
The result ResourceEntry should reflect the latest cache state.

Also, fix these classes and tests to stop using FileCache::GetCacheEntry().

BUG=275271
TEST=unit_tests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270602 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Record Invalidations.NetworkChannel histogram only when chrome actually uses channel.

Currently Invalidations.NetworkChannel recorded in TiclInvalidationService::Init. It is recorded for all profiles including the ones that are not signed in.
Move call to Invalidations.NetworkChannel histogram right before invalidator initialization.

R=rlarocque@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270604 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Improved ServiceDiscoveryClientMdns restart logic to avoid crashes.

BUG=369549
NOTRY=true

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

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270607 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Allow page to specify supported card types in rAc.

For Autofill, this means that a user can't select or type in a disallowed card type. For Wallet, it's business as usual (TM), unless MC is disallowed, in which case Wallet's hosed (i.e. disabled).

BUG=254689

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270610 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Don't send onLaunched to apps with only hidden windows when they reload.

This also stops apps with only hidden windows getting sent the
onLaunched if they don't listen to onRestarted and the system is
restarted.

BUG=268755

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@270614 4ff67af0-8c30-449e-8e8b-ad334ec8d88c