Revert 199566 "Drop more dependencies of ProfileKeyedService inf..."

> Drop more dependencies of ProfileKeyedService infrastructure on chrome.
> 
> This extracts AssertFactoriesBuilt code to a file that will stay in chrome.
> 
> BUG=227219
> R=erg@chromium.org
> 
> Review URL: https://codereview.chromium.org/14967003

TBR=phajdan.jr@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199643 0039d316-1c4b-4281-b951-d872f2087c98
remove USE_X11 in chromeos only code

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199645 0039d316-1c4b-4281-b951-d872f2087c98
Remove the extension dialog extra border.

ExtensionDialog uses Widget::CreateWindowWithParent.
Use DialogDelegate::CreateDialogWidget instead. 
Does not change the old-style appearance or behavior. 
See before/after pics at http://crbug.com/166075#c63 
Trigger the only user (select file dialog extension) in CrOS with CTRL+O.

Also, remove the unused fullscreen dialog codepath.
(Rahul said this is no longer used and may be removed)

BUG=166075
TEST=new-style select file extension dialog does not have an extra border. 
R=sky@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199647 0039d316-1c4b-4281-b951-d872f2087c98
CrOS Files.app: Hide the middle bar by default on initialize.

This patch hides the middle panel and the splitter at the initialization time. This prevets the middle bar glitch (see crbug.com/239155) when the default directory is on non-drive volume.

Even if the default directory is Drive, the new glitch is not happened by this patch. The middle bar will appear at the same timing as the list updated.

BUG=239155
TEST=manual

NOTRY=True
# NOTRYing for chromeos_linux already passes

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199648 0039d316-1c4b-4281-b951-d872f2087c98
Docserver: add test data for https://chromiumcodereview.appspot.com/14125010/.
It's a binary tarball and CQ doesn't like it.

BUG=234022
TBR=cduvall@chromium.org

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

Patch from Fang Jue <fangjue23303@gmail.com>.

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199650 0039d316-1c4b-4281-b951-d872f2087c98
Refactor chrome.(tabs | webview).executeScript to share more code

This patch also trivially adds chrome.webview.insertCSS.

webview.insertCSS will be exposed in a subsequent CL.

BUG=239968, 239688
Test=ExecuteScriptApiTest.*, WebViewTest.Shim

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199653 0039d316-1c4b-4281-b951-d872f2087c98
Change new-dialog-style default buttons on focus too.

This behavior is expected and required of dialogs, regardless of style.
Fixes DefaultButtonTest.DialogDefaultButtonTest for the new dialog style. 

BUG=166075
TEST=New dialog style default buttons follow focus.
TBR=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199654 0039d316-1c4b-4281-b951-d872f2087c98
Add UMA tracking for warm start time.

This adds UMA tracking for Startup.WarmStartTimeFromRemoteProcessStart, which
is the time between when a chrome process starts and when it successfully
notifies an already running process of its existence.

BUG=238591
R=cpu@chromium.org, sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199655 0039d316-1c4b-4281-b951-d872f2087c98
Polish new Files.app's UI details.

This patch fixes three small, but important UI issues:
- Restores fading of the context menu,
- Removes an extra line in the welcome banner,
- Removes roudned corners in the volume list.

TEST=Run Files.app, click on the gear menu, etc.
BUG=240150
R=yoshiki@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199656 0039d316-1c4b-4281-b951-d872f2087c98
Fix legacy UI in Files.app.

This patch fixes javascript caused by performing operations on the middle panel which doesn't exist in the legacy UI.

TEST=Run chrome in the legacy UI mode (about:flags or --file-manager-legacy) and run Files.app.
BUG=240148
R=yoshiki@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199657 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Fixed the problem that dialog opened by Ctrl+O cannot be expand.

To initialize the widget that contains dialog correctly, preferred
size of dialog should be set before.

BUG=238865

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199658 0039d316-1c4b-4281-b951-d872f2087c98
Add myself to the authors list

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199659 0039d316-1c4b-4281-b951-d872f2087c98
Implement webkit_blob::FileStreamReader for drive file system.

This is the implementation of webkit_blob::FileStreamReader interface,
based on DriveFileStreamReader.
This will be used in drive::FileSystemProxy.

BUG=127129
TEST=Ran unit_tests

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199660 0039d316-1c4b-4281-b951-d872f2087c98
drive: Remove argument variables from JobScheduler::JobEntry

Make a Closure to perform the task instead of calling each DriveServiceInterface method with switch.

BUG=230308
TEST=unit_tests
R=hidehiko@chromium.org, kinaba@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199661 0039d316-1c4b-4281-b951-d872f2087c98
CrOS Files.app: Restyle breadcrumb list and show it on normal directory.

This patch changes around preview panel to match the spec in the new UI.
- Restyle breadcrumb list CSS to match the spec
- Make the preview panel 1 line (previously 2 lines). Show breadcrumb if zero or one file is selected. Otherwise, show the sum of the selected files.
- Show the search breadlcrumb all directory except root directories (hence, the breadlcrumb is no longer "search" breadlcrumb).

This patch shouldn't effect any change to the previous ui.

BUG=238702
TEST=manual
R=mtomasz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199662 0039d316-1c4b-4281-b951-d872f2087c98
Retrial: Use MockDBusThreadManagerWithoutGMock for LoginUtilsTest

Removed the expectations which implement the fake behaviors.
Provided Fake* implmentations have the same bahavior.

BUG=239333
TEST=trybots
R=satorux@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199663 0039d316-1c4b-4281-b951-d872f2087c98
As a part of switch back to GData WAPI, update DB version.

Because GData WAPI and Drive API v2 has different resource id format, also the root folder id is different.
So, to switch back to GData WAPI, it is needed to refresh
the user's local metadata.

BUG=239729
TEST=Ran unit_tests
R=kinaba@chromium.org, satorux@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199664 0039d316-1c4b-4281-b951-d872f2087c98
Return caret bounds in local coordinates from GetCaretBoundsInWidget

This is another regression caused by r197858.
There remains another call site of TextInputClient::GetCaretBounds,
which now returns the caret rect as screen coordinate as
documented in the header.

BUG=239737
TEST=Manually done on Windows 7 with built-in Chinese IME.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199665 0039d316-1c4b-4281-b951-d872f2087c98
Detailed SimpleCache histograms tracking read/write failures.

By tracking the exact causes of failures, we can better field debug problems
occuring occasionally in trials.

BUG=239223
R=felipeg,pasko-chromium,rdsmith,isherman@chromium.org

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

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