Introduce AppsClient and use it in apps to get the loaded profiles list.

This breaks one dependency from the apps component to g_browser_process
and some dependencies on profile.

BUG=159366

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222988 0039d316-1c4b-4281-b951-d872f2087c98
Fixes the condition when the display preferences are stored.

- the display power state respects the current lid status, so
  it should be stored regardless of the login status.
- changed the condition in IsValidUser() permissive, not to
  allow editing in unknown login state, such like Kiosk mode
  or public accounts.

BUG=285360
R=oshima@chromium.org
TEST=unit_tests covers

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222989 0039d316-1c4b-4281-b951-d872f2087c98
Move context labelling logic out to ContextProviders

This moves the context debug labelling logic out to ContextProviders instead of doing it inside cc with a setting.  This cuts down on the configuration surface area for cc, allows a bit more flexibility in labelling, and reduces DelegatingRenderer's direct dependencies on WebGraphicsContext3D.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222990 0039d316-1c4b-4281-b951-d872f2087c98
Automated Commit: Committing new LKGM version 4682.0.0 for chromeos.

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222991 0039d316-1c4b-4281-b951-d872f2087c98
Cleans up rectangle handling of chrome://settings/display UI.

There could be 1px mismatch due to rounding errors of display's
ideal bounds with visualScale_. Introduces Math.floor to arrange
the display rectangles in a consistent manner.

It also cleans up the handling of borders. box-sizing: border-box
would be just fine instead of controlling the size in JS.

BUG=chrome-os-partner:22428
R=xiyuan@chromium.org
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222992 0039d316-1c4b-4281-b951-d872f2087c98
Attempt at fix crash during dragging

Apparently Widget->Activate() can trigger capture lose. Fix is to
early out if we're destroyed at this point. Destruction of
TabDragController during capture loss will have taken care of
cleanup.

BUG=276355
TEST=none
R=ben@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222993 0039d316-1c4b-4281-b951-d872f2087c98
Implement copy progress update.

This CL implements the update notification of Copy() task to Files.app.

BUG=279288
TEST=Ran unit_tests and tested manually.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222994 0039d316-1c4b-4281-b951-d872f2087c98
Refactor KeySystems code to call a function to populate the info. (re-land r222074)

This allows KeySystems to call GetContentClient()->AddKeySystems() so we can
move key system information to chrome/. The new ContentClient API is defined and
called, but we still rely on key_systems_info.cc.

BUG=224793
TEST=Existing content_unittests, content_browsertests,  and browser_tests pass.
TBR=jam@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222995 0039d316-1c4b-4281-b951-d872f2087c98
SyncFS: Add -> Delete remote change sequence should not end up sync error

Unhandled AbortSync() could cause infinite sync loop.
(We may need to care other AbortSync cases too)

BUG=none
TEST=manual
R=tzik@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222996 0039d316-1c4b-4281-b951-d872f2087c98
ShortcutHelper takes in an Intent action
    
Set the package name in the Intent so that they are only received by Chrome.
    
This has the unfortunate side-effect of shortcuts remaining on screen after Chrome is uninstalled, but it allows us to redirect where Intents are handled instead of forcing them to be handled forever by the named class.
    
BUG=282640
TEST=ShortcutHelperTest

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222997 0039d316-1c4b-4281-b951-d872f2087c98
Remove shortcut pathway on bookmarks page when Webapps enabled

If "Add to homescreen" is in the menu, we need to disable the
shortcut adding pathway on the bookmarks page.

BUG=153066

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222998 0039d316-1c4b-4281-b951-d872f2087c98
fix for TransportConnectJob::GetLoadState unwanted assertion

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

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

getMountPoints will soon return the Drive's mounting point info (if available).
This is the preparation for it.

BUG=279276
TEST=Ran browser_tests --gtest_filter="*FileSystemExtensionApiTest*:*FileManagerBrowserTest*:*FileBrowserPrivateApiTest*" and tested manually.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223000 0039d316-1c4b-4281-b951-d872f2087c98
Move demuxer-related operations from WebMediaPlayerProxyAndroid to RendererDemuxerAndroid.

BUG=263652

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223001 0039d316-1c4b-4281-b951-d872f2087c98
Send activityLogPrivate to stable

This sends the activityLogPrivate API to stable with M31.

It also adds a second whitelisted ID so that we can have separate versions for dogfooding and external release.

BUG=241672
R=mpcomplete@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223002 0039d316-1c4b-4281-b951-d872f2087c98
android: Download ARMv7 image for the emulator.

Follow-up to r222121: GetSDK() used to download an additional copy of the
Android SDK that came with an ARM image. The copy we currently use in
third_party/android_tools/sdk does not come with the ARM image.

Restore the lost functionality while still avoiding downloading the complete
SDK by grabbing only the ARM images from a Google URL.

R=mariakhomenko@chromium.org,peter@chromium.org,bulach@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223003 0039d316-1c4b-4281-b951-d872f2087c98
Adds a 'copy to clipboard' button to the media-internals UI.

BUG=260005

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223004 0039d316-1c4b-4281-b951-d872f2087c98
Add a new component app Guide to Chrome (code name GeniusApp) to replace HelpApp. Add a command line switch so that we can easily fall back to the old one if necessary.

BUG=chromium:281234
TEST=manual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223006 0039d316-1c4b-4281-b951-d872f2087c98
The remainder of QUIC server-side unit tests.

(Clone of https://codereview.chromium.org/23532019/ whose
author is out of the office)

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223007 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Add a feature to get JS heap snapshot.

BUG=chromedriver:519

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

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