SVN changes up to revision 164316
Tick synthetic gestures before handling key events to ensure proper ordering of operations

BUG=155643


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164318 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164318
drive: Refactor DriveFeedLoader for avoiding complex initial_origin passing.

The following function has nothing to do with content origin.
So, all the refernce to |initial_origin| or |set_origin| have gone.
  - DriveFileSystem::RequestDirectoryRefresh
  - DriveFileSystem::Search
  - DriveFeedLoader::LoadDirectoryFromServer
  - DriveFeedLoader::SearchFromServer
  - DriveFeedLoader::LoadFromServer

DriveFileSystem doesn't modify origin anymore.
All the state changes are taken care by FeedLoader.
  - DriveFileSystem::LoadFeedIfNeeded simply calls DriveFeedLoader::LoadFromCache.
  - DriveFileSystem::CheckForUpdates simply calls DriveFeedLoader::ReloadFromServerIfNeeded.

DriveFeedLoader::LoadFromCache now works as follows.
  1) Must be called with UNINITIALIZED
  2) refreshing_ = true
  3) Calls resource_metadata_->(InitFromDB|ParseFromString). Sets INITIALIZED if successful.
  4) refreshing_ = false
  5) Calls ReloadFromServerIfNeeded.

DriveFeedLoader::ReloadFromServerIfNeeded no works as follows.
  1) Can be called with UNINITIALIZED or INITIALIZED
  2) refreshing_ = true
  3) Checks timestamp. If up-to-date, refreshing_ = false and callback.
  4) Otherwise, call LoadFromServer and called back to...
DriveFeedLoader::OnFeedFromServerLoaded
  5) Calls UpdateFromFeed(), which sets INITIALIZED if successful.
  6) refreshing_ = false

BUG=157857

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164319 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164319
Update nss_revision to 164196 to revert NSS 3.14.

The underlying CL is https://codereview.chromium.org/11270050

R=thakis@chromium.org,rsleevi@chromium.org
BUG=151692
TEST=none

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164321 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164320
SVN changes up to revision 164321
Roll webrtc from 2961 to 2985, deps2git from 157441 to 163971

TBR=niklase
Review URL: https://codereview.chromium.org/11314003

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164323 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164322
SVN changes up to revision 164323
Change the API test for WebRequest/requestBody to only use existing pages, and enable that test.

Previously, the API test submitted a form to a non-existing page.
While this should be perfectly OK, the Chrome's warning page about inacessible
URL somehow interefered with subsequent tests.

This CL makes sure that the form is submitted to an existing (although
unrelated page).

It also re-enables the previously disabled API test (ExtensionWebRequestApiTest.PostData).

BUG=152859
TEST=N/A (This only influences API tests, not Chrome itself.)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164324 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164324
cc: Get rid of the remaining includes to MathExtras.h.

BUG=154451
TEST=cc_unittests
R=enne@chromium.org,jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164325 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164325
Revert 164322 - Roll webrtc from 2961 to 2985, deps2git from 157441 to 163971

TBR=niklase
Review URL: https://codereview.chromium.org/11314003

TBR=henrika@chromium.org
Review URL: https://codereview.chromium.org/11315006

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164327 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 164326