Lock-free shutdown of profile sync service. Changes include:
* Disconnect non-frontend processor/associator to stop accessing directory
so that sync backend can be shut down without waiting.
* Change non-frontend controller so that creation/destruction of 
processor/associator doesn't depend on valid controller. So
scoped wait on stopping controller can be removed.
* Move sync thread to PSS. It's created when starting first backend and 
destroyed on last browser thread.

BUG=19757

Review URL: https://chromiumcodereview.appspot.com/16770005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210333 0039d316-1c4b-4281-b951-d872f2087c98
requestAutocomplete: Wallet interstitial on Views.

1. "generating card..."
2. "card generated" (only on first run)

BUG=243571

Review URL: https://chromiumcodereview.appspot.com/18110008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210334 0039d316-1c4b-4281-b951-d872f2087c98
Fix per-file read permission handling for files in FileSystem API

We used to ask consumers of FileSystem APIs to grant per-file
ReadFile permission (in addition to per-filesystem permission)
when necessary so that the right renderer can read the content
via File object, but it's too awkward and it's easy to leak
permissions.

This change does:
- Always give temporary per-file read permission when the
  renderer has the right permission to read the file
  (e.g. via a certain filesystem)
- Revoke the temporary per-file permission after the last
  reference of the File object (in the renderer) is dropped
- Remove scattered GrantReadFile() calls by the FileSystem API
  consumers

BUG=none
TEST=browser_tests:\*PlatformAppBrowserTest.\*File\*
R=aedla@chromium.org, benwells@chromium.org, michaeln@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210335 0039d316-1c4b-4281-b951-d872f2087c98
Revert "Revert "[Telemetry] Use PPAPI flash on Mac.""

This reverts commit bf40c1ee9c6e74affe5177cc32d91ff76e520ab5.

Re-enabling PPAPI on Mac. The difference between this and the original
patch is that we now properly choose the 32 or 64-bit version.

BUG=255056
TBR=pasko@chromium.org
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/18112010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210336 0039d316-1c4b-4281-b951-d872f2087c98
Move kEnableNaClDebug to nacl_switches.

This is part of an effort to componentize NaCl code.
BUG=244791

Review URL: https://chromiumcodereview.appspot.com/18145011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210337 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll 153627:153656

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

Review URL: https://chromiumcodereview.appspot.com/18153017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210338 0039d316-1c4b-4281-b951-d872f2087c98
Remove unused TabImage::y_offset

BUG=None
TEST=None
TBR=sky

Review URL: https://chromiumcodereview.appspot.com/18238007

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210340 0039d316-1c4b-4281-b951-d872f2087c98
Move logic wrt to revealing the top-of-window views in immersive fullscreen when a bubble is visible to ImmersiveModeControllerAsh.

BUG=181684
TEST=ImmersiveModeControllerAshTest.*

Review URL: https://chromiumcodereview.appspot.com/18284002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210341 0039d316-1c4b-4281-b951-d872f2087c98
Remove invocation of WebSettings::setFontRenderingNormal, which is a no-op.

That is the only possible mode in Blink, this call must go away before
the plumbing can be removed from Blink.

Should land before http://crrev.com/18453003.

BUG=257473

Review URL: https://chromiumcodereview.appspot.com/18420021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210342 0039d316-1c4b-4281-b951-d872f2087c98
Move Renderer-side NPObject owner tracking to JavaBridgeChannel.

This is defensive against the possibility of a single JavaBridgeChannel to the Browser hosting multiple JavaBridgeDispatchers.

BUG=152006

Review URL: https://chromiumcodereview.appspot.com/18570003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210343 0039d316-1c4b-4281-b951-d872f2087c98
[SPDY] Make SpdySessionPool keep track of available sessions

Split a SpdySessionPool's sessions into available ones and unavailable ones.
Keep all sessions in a set, and all the available sessions in a map keyed
by SpdySessionKey. This is in preparation for making SpdySessionPool
own a session even if it receives a GOAWAY frame.

Split SpdySessionPool::Remove() into two functions -- MakeSessionUnavailable()
and RemoveUnavailableSession(). For now, sessions call them at the same
time, but in the future RemoveUnavailableSession() may be called later
than MakeSessionUnavailable() (for the GOAWAY case).

Don't add a SpdySession to a pool if it encountered an error during
initialization. Also, don't do some work in SpdySession::InitializeWithSocket()
if initialization fails.

Rename functions and variables in SpdySessionPool to be concise and
consistent. Inline a bunch of one-off functions. Rewrite the loop
in SpdySessionPool::RemoveAliases().

BUG=255701

Review URL: https://chromiumcodereview.appspot.com/18600010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210344 0039d316-1c4b-4281-b951-d872f2087c98
Add Startup.* histograms.

Review URL: https://chromiumcodereview.appspot.com/18628005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210345 0039d316-1c4b-4281-b951-d872f2087c98
Revert 210333 "Lock-free shutdown of profile sync service. Chang..."

Suspected to have introduced (flaky) SEGV crash in
ProfileSyncServiceTypedUrlTest.IgnoreLocalhostURL

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20(1)/builds/28925/steps/unit_tests/logs/stdio
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20(dbg)(1)/builds/21682/steps/unit_tests/logs/IgnoreLocalhostURL
http://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%283%29/builds/7252/steps/unit_tests/logs/IgnoreLocalhostURL

> Lock-free shutdown of profile sync service. Changes include:
> * Disconnect non-frontend processor/associator to stop accessing directory
> so that sync backend can be shut down without waiting.
> * Change non-frontend controller so that creation/destruction of 
> processor/associator doesn't depend on valid controller. So
> scoped wait on stopping controller can be removed.
> * Move sync thread to PSS. It's created when starting first backend and 
> destroyed on last browser thread.
> 
> BUG=19757
> 
> Review URL: https://chromiumcodereview.appspot.com/16770005

TBR=haitaol@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210346 0039d316-1c4b-4281-b951-d872f2087c98
drive: Add test for ChangeListLoader::CheckForUpdates()

BUG=161703
TEST=unit_tests --gtest_filter="ChangeListLoaderTest.CheckForUpdates"
R=kinaba@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210347 0039d316-1c4b-4281-b951-d872f2087c98
webkit/renderer: Misc cleanup to clipboard_utils.

- Remove using declaration from header file.
- Remove unnecessary includes.
- Fix copyright header.

BUG=None
R=darin@chromium.org, kinuko@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210348 0039d316-1c4b-4281-b951-d872f2087c98
Revert 210334 "requestAutocomplete: Wallet interstitial on Views."

Android bots are broken on AutofillDialogControllerTest.WalletSecondRun
after this patch:
> C  221s Main  [CRASH] AutofillDialogControllerTest.WalletSecondRun:
> C  221s Main  [ERROR:platform_font_android.cc(13)] Not implemented reached in static gfx::PlatformFont* gfx::PlatformFont::CreateDefault()
> C  221s Main  [ERROR:platform_font_android.cc(13)] Not implemented reached in static gfx::PlatformFont* gfx::PlatformFont::CreateDefault()
> C  221s Main  [ERROR:platform_font_android.cc(13)] Not implemented reached in static gfx::PlatformFont* gfx::PlatformFont::CreateDefault()
> C  221s Main  assertion "ptr_ != NULL" failed: file "../../base/memory/ref_counted.h", line 256, function "T* scoped_refptr<T>::operator->() const [with T = gfx::PlatformFont]"

> requestAutocomplete: Wallet interstitial on Views.
> 
> 1. "generating card..."
> 2. "card generated" (only on first run)
> 
> BUG=243571
> 
> Review URL: https://chromiumcodereview.appspot.com/18110008

TBR=estade@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210349 0039d316-1c4b-4281-b951-d872f2087c98
chromeos: Add test for DiskInfo::DiskInfo()

Code stack of CrosDisksClient, DiskMountManager and FileManagerEventRouter need some refactoring, but most of the code lack tests.

BUG=None
TEST=chromeos_unittests
R=satorux@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210350 0039d316-1c4b-4281-b951-d872f2087c98
Added file/folder icons to chrome://syncfs-internals file metadata tab.

BUG=256990
R=nhiroki@chromium.org, tzik@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210351 0039d316-1c4b-4281-b951-d872f2087c98
Remove direct reference to GetBlockingPool() in c/b/google_apis.

Instead, a task runner is injected from the upper layer.
This is for removing the dependency to content/ from c/b/google_apis/ and
moving the directory content to the top level google_apis/.

BUG=256112

Review URL: https://chromiumcodereview.appspot.com/18742002

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