[Autofill] Write origins to the WebDB.

Also, make sure to clear the origins when history is cleared.

BUG=170401, 231029
TEST=unit tested

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201414 0039d316-1c4b-4281-b951-d872f2087c98
Only sync parent directory once after a leveldb file rename.

This should prevent ~2 fsyncs when opening a leveldb.

BUG=242269

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201417 0039d316-1c4b-4281-b951-d872f2087c98
cc: Move activation check into TileManager

Currently "AreVisibleResourcesReady" requires a tree and tiling walk to
calculate, which means that it's not going to be cheap enough to call
repeatedly during a frame.  This is one step towards making activation happen
sooner.

This patch only changes "AreVisibleResourcesReady" into
"MarkVisibleResourcesAsRequired", marking individual tiles as being required
for activation.  The TileManager recalculates the set of required tiles when
assigning gpu memory, so that "required" tiles that don't get memory won't be
considered.  This lets it very cheaply determine how many outstanding tiles
are needed for the frame.

R=danakj@chromium.org,reveman@chromium.org
BUG=236648

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

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

The plan is to merge this CL to M28 branch and revert it immediately on
trunk.

BUG=241620
TEST=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201420 0039d316-1c4b-4281-b951-d872f2087c98
Sending crash reports to notification server.

BUG=164227
TEST=No

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201421 0039d316-1c4b-4281-b951-d872f2087c98
app_list: Add web store search.

- Split SafeJsonParser out of WebstoreDataFetcher to share the code;
- Add a WebstoreSearchFetcher to retrieve results from web store server;
- Add a WebstoreResultIconSource that fetches icon when painted on screen;
- Add a WebStoreProvider that generates WebstoreResult for results fetched
  from server or a placeholder "Search in webstore" result;

BUG=173430

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201422 0039d316-1c4b-4281-b951-d872f2087c98
Remove base::FileUtilProxy::Entry since it is no longer used.

base::FileUtilProxy::Entry was moved to fileapi::DirectoryEntry
http://crrev.com/201018

BUG=240245
TEST=none
R=kinuko@chromium.org, willchan@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201423 0039d316-1c4b-4281-b951-d872f2087c98
Keep screen on when there is an active WebRTC session on Android.

When WebRTC session has video channel, the screen is kept on.

R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201424 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Convert adb communication to C++.

Previously a Python script was exec'd, which in turn exec'd the adb client.

BUG=chromedriver:343
TEST=android chromedriver bot

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201425 0039d316-1c4b-4281-b951-d872f2087c98
Fix _CheckAddedDepsHaveTargetApprovals for the case where no owner has been specified.

TBR=maruel@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201426 0039d316-1c4b-4281-b951-d872f2087c98
Wait for the Cache database's initialization in the image loader extension.

Image Loader had not been waiting for cache initialization before handling requests. As a result, the first requests after launching Files.app were never loaded from cache, even if they were in cache. This patch fixes this issue by making Image Loader wait until the cache initialization. Requests received before the initialization are stored in a temporary list and processed once the cache is ready.

TEST=Tested manually. Check if there are no `Cache database not available.` warnings in the Image Loader extension's console.
BUG=239768

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201427 0039d316-1c4b-4281-b951-d872f2087c98
Return in ImporterHost after canceling import.

BUG=238557
TEST=Start Chrome with an empty user data directory and Firefox open. It shouldn't crash.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201428 0039d316-1c4b-4281-b951-d872f2087c98
Use unsigned for syscall number so we're not surprised by a negative one.

R=jln@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201429 0039d316-1c4b-4281-b951-d872f2087c98
Updating trunk VERSION from 1514.0 to 1515.0

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201431 0039d316-1c4b-4281-b951-d872f2087c98
Revert 201424 "Keep screen on when there is an active WebRTC ses..."

experimental reversion due to http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Tests&number=4397

> Keep screen on when there is an active WebRTC session on Android.
> 
> When WebRTC session has video channel, the screen is kept on.
> 
> R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org
> 
> Review URL: https://codereview.chromium.org/15035013

TBR=wjia@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201433 0039d316-1c4b-4281-b951-d872f2087c98
Revert 201420 - Disable PPB_FileIO_Private.

The plan is to merge this CL to M28 branch and revert it immediately on
trunk.

BUG=241620
TEST=None

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

TBR=yzshen@chromium.org
Review URL: https://codereview.chromium.org/15649003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201436 0039d316-1c4b-4281-b951-d872f2087c98
Fix compile error on official Chrome OS build.

We need a header for CrosSettings.

BUG=None
TBR=vadimt
TEST=Manually checked.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201437 0039d316-1c4b-4281-b951-d872f2087c98
Revert 201433 "Revert 201424 "Keep screen on when there is an ac..."

r201431 passed all android bots.

> Revert 201424 "Keep screen on when there is an active WebRTC ses..."
> 
> experimental reversion due to http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Tests&number=4397
> 
> > Keep screen on when there is an active WebRTC session on Android.
> > 
> > When WebRTC session has video channel, the screen is kept on.
> > 
> > R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/15035013
> 
> TBR=wjia@chromium.org
> 
> Review URL: https://codereview.chromium.org/15655002

TBR=wjia@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201439 0039d316-1c4b-4281-b951-d872f2087c98
Revert 201439 "Revert 201433 "Revert 201424 "Keep screen on when..."

> Revert 201433 "Revert 201424 "Keep screen on when there is an ac..."
> 
> r201431 passed all android bots.
> 
> > Revert 201424 "Keep screen on when there is an active WebRTC ses..."
> > 
> > experimental reversion due to http://build.chromium.org/p/chromium.linux/buildstatus?builder=Android%20Tests&number=4397
> > 
> > > Keep screen on when there is an active WebRTC session on Android.
> > > 
> > > When WebRTC session has video channel, the screen is kept on.
> > > 
> > > R=bulach@chromium.org, joth@chromium.org, qinmin@chromium.org, sky@chromium.org
> > > 
> > > Review URL: https://codereview.chromium.org/15035013
> > 
> > TBR=wjia@chromium.org
> > 
> > Review URL: https://codereview.chromium.org/15655002
> 
> TBR=wjia@chromium.org
> 
> Review URL: https://codereview.chromium.org/15667003

TBR=wjia@chromium.org

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

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

BUG=151701
TBR=kinuko

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

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