Fix chrome.gpuBenchmarking.smoothScrollBy() after http://trac.webkit.org/changeset/142571

The scrolling_benchmark is currently broken on android. Scrolling doesn't start
on pages which have a scrollable element (those that pass opt_mouse_event_x and
opt_mouse_event_y to smoothScrollBy).

http://trac.webkit.org/changeset/142571 changed WebInputEvent to expect scaled
coordinates. This patch fixes the benchmarking extension to provide scaled
coordinates. With it, we pass the scrolling_benchmark in android again.

BUG=None
TEST=tools/perf/run_multipage_benchmarks --browser=android-content-shell scrolling_benchmark tools/perf/page_sets/top_25.json


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186328 0039d316-1c4b-4281-b951-d872f2087c98
New DriveFileSyncService test naming convention
1. drive_file_sync_service_mock_unittests.cc which will be a rename of the
original test file drive_file_sync_service_unittests.cc. The idea is to
eventually move away from gMock used in these tests and to use the fake*
instead.
2. drive_file_sync_service_sync_unittests.cc will contain the composite tests
tzik has created using his new framework.
3. drive_file_sync_service_unittests.cc will be the new unittest file that uses
FakeDriveFileSyncClient.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186329 0039d316-1c4b-4281-b951-d872f2087c98
Use media::VideoFrame directly instead of WebVideoFrame.

The WebVideoFrame methods return wrong values and are going to be
deleted. Instead, the media::VideoFrame should be used directly.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186331 0039d316-1c4b-4281-b951-d872f2087c98
[Media Gallery, Win] Implement asynchronous MtpDeviceDelegateImplWin. 

Previously,
(1) MTPDeviceDelegateImplWin implemented a synchronous version of MTPDeviceDelegate.
(2) MTPDeviceDelegateImplWin was operated on multiple threads (blocking pool thread and UI thread).
(3) Because of the synchronous behavior, copying a file off an MTP device was blocking the entire thread.

Now,
(1) MTPDeviceDelegateImplWin implements an asynchronous version of MTPDeviceDelegate.
(2) MTPDeviceDelegateImplWin runs on the single thread (IO thread).
(3) MTPDeviceDelegateImplWin supports weak pointers to cancel the callbacks that may run after the destruction of MTPDeviceDelegateImplWin.
(3) Because of the asynchronous behavior, MTPDeviceDelegateImplWin does a call-and-reply to a blocking pool thread to complete the requested device operation (such as GetFileInfo, ReadDirectory, CreateSnapshotFile, etc).
(4) Copying a file off an MTP device is divided into several sub tasks giving a chance to abort the copy operation when required. We no longer block the entire thread to copy the complete MTP device file.

BUG=151679
TEST=none
TBR=kinuko@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186336 0039d316-1c4b-4281-b951-d872f2087c98
Browser Plugin: Implement BrowserPluginGuestManager

This patch centralizes instance ID allocation and routing to a per-profile object called BrowserPluginGuestManager.

This patch minimizes BrowserPluginEmbedder's responsibilities without entirely removing it.

BrowserPluginEmbedder lives for the lifetime of an embedder WebContents. It handles IPC messages that are not directed at any particular guest process, currently those are:

BrowserPluginHostMsg_AllocateInstanceID
BrowserPluginHostMsg_CreateGuest,
BrowserPluginHostMsg_PluginAtPositionResponse

These message handlers were kept in BrowserPluginEmbedder because they either operate on the embedder (as with PluginAtPosition), or they need to reply back to the correct BrowserPluginManager. This requires an understanding of the  process ID and routing ID of the origin of the message. This information does not seem particularly appropriate in BrowserPluginGuestManager because that object spans multiple embedders and potentially multiple processes (outside of Chrome Apps).

BUG=174673, 140316
Test=BrowserPluginHostTest.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186338 0039d316-1c4b-4281-b951-d872f2087c98
Add nativeMessaging extension permission

Now extensions need to have nativeMessaging permission to be able to use 
native messaging API.

BUG=142915


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186340 0039d316-1c4b-4281-b951-d872f2087c98
Fix the problem that the taskbar icon is not flashed sometimes when drawing attention for a stacked panel

The fix is not to call FlashFrame second time if the flashing is not cleared. In addition, I changed to listen to the focus change event for the stack window in order to activate the most recently active panel when the user selects the stack via ALT-TAB.

BUG=180072
TEST=Manual test


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186341 0039d316-1c4b-4281-b951-d872f2087c98
Provide shared context to Platform API in renderer.

Implements the WebKit::Platform::sharedOffscreenGraphicsContext3D API
in the renderer, and provide the same shared context to WebKit and the
compositor when the compositor is not threaded.

RenderWidgetCompositor and RendererWebKitPlatformSupport both access
the shared context through RenderThreadImpl who creates them.

R=piman,jamesr
BUG=177768

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186342 0039d316-1c4b-4281-b951-d872f2087c98
Roll ANGLE 1834:1992.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186343 0039d316-1c4b-4281-b951-d872f2087c98
ÜC: Add support for delegated renderer layer in ui::Layer

BUG=123444


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186344 0039d316-1c4b-4281-b951-d872f2087c98
Windows: Disable GPU sandbox if DisplayLink version 7.1 or earlier is installed.

DisplayLink crashes the GPU process while the Direct3D device is being created if the sandbox is enabled.

Before landing this, I will revert r185146 and rebase so that it merges without conflict.

BUG=177611

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186346 0039d316-1c4b-4281-b951-d872f2087c98
Add chrome-search: access from Instant overlay

Enables the Instant NTP page access to:
  chrome-search://theme/*,
  chrome-search://favicon/*, and
  chrome-search://thumb/*.

This CL has a number of aspects to make the installed theme
background image available to the Instant overlay:
   1. Utilizes the new chrome-search: scheme that is accessible only
      to the Instant overlay's render process.  This is enforced
      on the renderer side by WebKit::WebSecurityPolicy
      facilities.  This is enforced on the browser side by the
      InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities.
   2. Whitelists the chrome-search://theme origin to be made
      available to the specific Instant overlay's origin/url.
   3. Backend CSS that sets the appropriate background image
      that resides in the chrome-search://theme origin.
   4. A small refactoring of the Instant tests to support mix-in
      usage of InstantTestBase.

BUG=172408, 134937
TEST=InstantPolicyTest.SearchSchemePolicy
R=sreeram@chromium.org, creis@chromium.org


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186347 0039d316-1c4b-4281-b951-d872f2087c98
Remove c/b/api/sync dependency from AutofillManager using delegate.

BUG=140037


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186348 0039d316-1c4b-4281-b951-d872f2087c98
Merge upstream csd.proto changes.

Adds ClientUploadResponse message.

BUG=169557


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186349 0039d316-1c4b-4281-b951-d872f2087c98
minor changes to translated strings in apps_devtools app.


BUG=149036
TBR=dbeam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186350 0039d316-1c4b-4281-b951-d872f2087c98
shell_integration_linux: Follow the XDG Base Directory Specification.

GetDesktopShortcutTemplate now:

- Searches $XDG_DATA_HOME/applications instead of $XDG_DATA_HOME.
- If $XDG_DATA_HOME is not found, falls back to $HOME/.local/share/applications.
- No longer searches $XDG_DATA_DIRS (without /applications).
- Only searches /usr/local/share/applications and /usr/share/applications if
  $XDG_DATA_DIRS is not found.
- Searches /usr/local/share/applications before /usr/share/applications.

BUG=179751


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186351 0039d316-1c4b-4281-b951-d872f2087c98
Don't show the extension blacklist alert every 5 minutes.

BUG=180017

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186352 0039d316-1c4b-4281-b951-d872f2087c98
Refactor StorageMonitor::StorageInfo into its own class

BUG=NONE
TBR=thestig@chromium.org,vandebo@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186353 0039d316-1c4b-4281-b951-d872f2087c98
Alternate NTP Mac: Update look of detached bookmark bar

This is the Mac version of this views CL: https://chromiumcodereview.appspot.com/12383033

Mock: http://i.imgur.com/pI1mfEH.png
Screenshot: http://i.imgur.com/aRy3sAT.png
Screenshot with theme: http://i.imgur.com/eRTL3I4.png

BUG=179163
TEST=Ran chrome with --enable-instant-extended-api. Verified that the detached bookmark bar match the spec.

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

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