move Content-Security-Policy out of Extension

BUG=159265


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182887 0039d316-1c4b-4281-b951-d872f2087c98
Autofill dialog controller enhancements to support autocheckout.

Only close the autofill dialog on navigation with it was invoked via rAc().

BUG=172945
R=isherman@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182891 0039d316-1c4b-4281-b951-d872f2087c98
[Android] Split out the instrumentation test runner, sharder, and dispatcher.

Mostly just moves codes around.

BUG=168889
TEST=run_instrumentation_tests.py
NOTRY=True

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182892 0039d316-1c4b-4281-b951-d872f2087c98
Added interstitial page for merge session. This page will let us delay loading of Google properties during ChromeOS cookie session restore at login (aka /MergeSession).

The interstitial page will show 3 seconds of no UI (white tab) followed with up to 7 seconds of UI with only "Loading..." message showing in tabs. For huge majority of cases, that secondary UI won't show since merge session will probably complete by then.

BUG=171980
TEST=added merge_session_load_page_unittest.cc
TBR=sky

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182894 0039d316-1c4b-4281-b951-d872f2087c98
Add kSpdyVersion2 to match kSpdyVersion3

This lands server change 42402469.

Also change spdy_session.cc to use the new constants.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182895 0039d316-1c4b-4281-b951-d872f2087c98
Document that activeTab is restriced to dev channel.

BUG=172618
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182896 0039d316-1c4b-4281-b951-d872f2087c98
x11: Do not generate scroll events from mousewheel scrolls.

An external mouse can have some of the valuators we use for trackpad
on chromeos. However, events from the external mouse still needs to
be treated differently from the events generated by the touchpad. So
generate MOUSEWHEEL events for external mouse scrolls, and SCROLL
events for multi-finger scrolls in the touchpad.

BUG=176574

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182902 0039d316-1c4b-4281-b951-d872f2087c98
webcursor-x11: Do not attempt to create a custom cursor when there's no data.

A page can try to create a custom cursor without any valid data. Detect
these cases and do not attempt to create an image-cursor.

BUG=174376

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182906 0039d316-1c4b-4281-b951-d872f2087c98
Add Cocoa versions of AppsGridView and AppListItemView in /ui/app_list, with tests.

This change refactors out some logic for a testing AppListModel from 
the views unit tests, and adds an NSViewController for the the app list 
grid view. The ItemView is currently built with stock controls. The CL
also adds tests.

The grid view and the item are associated with the AppListModel, which 
is plumbed through the views. Currently only new/added model items are 
implemented. Layout is managed by an NSCollectionView.

BUG=138633
TEST=Covered by app_list_unittests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182907 0039d316-1c4b-4281-b951-d872f2087c98
Implement path for providing test WebLayerTreeView to DumpRenderTree

This provides an explicit path to provide WebLayerTreeView instances for layout tests via the WebUnitTestSupport interface (which probably should just be called WebTestSupport, but there's a naming collision upstream).  With this, no production code is left using the WebCompositorSupport::createLayerTreeView() code and it can be nuked (along with most of WebLayerTreeViewClient).

This patch won't compile until https://bugs.webkit.org/show_bug.cgi?id=109634 lands and rolls

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182908 0039d316-1c4b-4281-b951-d872f2087c98
cros: Kisok app settings.

- Add a KioskPrefs interface for persisting app id list and auto lauch app id;
- KioskPrefsLocalState implements a local state based KioskPrefs;
- KioskAppData handles fetching webstore data and cache it locally;
- Add KioskAppManager that is backed by a KisokPrefs and a list of KioskAppData;
- Add a KioskAppManagerTest suite;

R=zelidrag@chromium.org
BUG=173749
TEST=KioskAppManagerTest.* should pass
TBR=sky@chromium.org for gyp and browser_prefs.cc changes.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182909 0039d316-1c4b-4281-b951-d872f2087c98
Set anyone as owner for google_chrome_strings.grd and chromium_strings.grd.

These files should have the same ownership as generated_resources.grd.

BUG=None


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182910 0039d316-1c4b-4281-b951-d872f2087c98
touch: Fix a crash in compositor-thread hit-test related code.

The browser makes an assumption that the compositor thread hit-testing will
never return NO_CONSUMER_EXISTS for a touch-event sequence if a previous event
in the same sequence was CONSUMED. This is not true, especially for multi-touch
touch sequences. So remove the check that enforces this assumption.

BUG=174988

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182911 0039d316-1c4b-4281-b951-d872f2087c98
When reading from an SSL socket, attempt to fully fill the caller's buffer

The current SSLClientSocket implementation reads one SSL
record at a time, and immediately returns that to the caller
of Read(). As it is a common performance optimization to set
SSL record sizes to fit within MTU, this leads to suboptimal
performance and causes SSLClientSocket::Read() to not
match the behaviour of TCPClientSocket::Read() (which
attempts to fully fill the caller's buffer).

BUG=166903

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182912 0039d316-1c4b-4281-b951-d872f2087c98
[Media Galleries] Add volume metadata information to preferences

BUG=


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182913 0039d316-1c4b-4281-b951-d872f2087c98
Add a limited install extension from webstore command.

chrome/browser/extensions/startup_helper.*:
  Added a method which does an asynchronous install of an
  extension. It only handles fixed inputs to limit the
  surface area of the feature. The callback for
  LimitedInstallFromWebstore and the "2" are there to help
  with testing. The core was formed by pulling out common
  code from InstallFromWebstore. InstallFromWebstore doesn't 
  meet the needs because this command is used for apps (not
  extensions).

chrome/browser/extensions/webstore_standalone_install_browsertest.cc:
  Made CommandLineWebstoreInstall slightly more general
  so that it could be used to test the limited install
  scenario as well.

chrome/browser/ui/startup/startup_browser_creator.cc:
  Handle the command line flag. This location handles flags
  passed cross-process when a browser instance is already
  running and another instance is started with the flag.

chrome/installer/setup/install_worker.cc:
  Added the app command to the registry to allow using the
  limited install switch. This re-uses much of the same code
  as AddInstallAppCommandWorkItems.

chrome/installer/util/installation_validator.*
  The verification for the new registry entry.

chrome/installer/util/installation_validator_unittest.cc:
  Testing the verification.

chrome/common/chrome_switches.*:
  The command line flag to do the limited install.

chrome/installer/util/util_constants.*:
  The registry key value for the app command.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182914 0039d316-1c4b-4281-b951-d872f2087c98
[win] Always open v1 hosted apps in chrome from the app launcher.

Previously they would not open in Chrome if another browser was the default.
As chrome is guaranteed to be installed now this is not needed.

BUG=176267


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182915 0039d316-1c4b-4281-b951-d872f2087c98
Make base compile with no "using base::FilePath".

For base .cc files not using the base namespace, I added a using since theses
files should be moved to the base namespace, and then explicit qualification
will no longer be necessary.

Original review URL: https://codereview.chromium.org/12226121
(reland of r182040).
Review URL: https://codereview.chromium.org/12278014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182916 0039d316-1c4b-4281-b951-d872f2087c98
Add FILES.cfg for Android builds.


BUG=164196


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182917 0039d316-1c4b-4281-b951-d872f2087c98
Remove PrefServiceBase, since everyone can now depend directly on PrefService.

TBR=ben@chromium.org
BUG=155525


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

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