Moving IME manifests to chrome resources.

BUG=378348, 391778
TEST=Verified on sandbox, Pixel device. And made sure no test is broken.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285905 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable PicasaFileUtilTest.FolderWithManyFiles on Windows since it times out on Win tryjobs.

BUG=398031
TBR=tommycli@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285907 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Disable InMemoryURLIndexTest.RebuildFromHistoryIfCacheOld since it's flaking on windows tryjobs.

BUG=351500
TBR=mpearson@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285909 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Revert of Disable flaky tests related to "Cannot read property 'textdirection' of undefined" (https://codereview.chromium.org/413913002/)

Reason for revert:
The flakes seem to have been caused by http://src.chromium.org/viewvc/blink?revision=178571&view=revision, which have been since reverted in https://codereview.chromium.org/418783002/ and rolled to Chromium in https://codereview.chromium.org/418713003.

The errors can no longer be reproduced with ToT. Pushing revert through CQ and try bots to make sure this is also the case on the bots.

Original issue's description:
> Disable flaky tests related to "Cannot read property 'textdirection' of undefined".
> 
> BUG=396752
> R=kalman@chromium.org
> TBR=ben@chromium.org, dbeam@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285100

TBR=dbeam@chromium.org,kalman@chromium.org,ben@chromium.org,stgao@chromium.org
BUG=396752

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285912 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Cleanup: Remove unused CancelableRequestConsumer usage from download test.

BUG=371818
TEST=browser_tests --gtest_filter=DownloadTest.*
R=asanka@chromium.org,sdefresne@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285915 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix nacl_process_host.h includes.

This file should never be included when DISABLE_NACL is defined. Erroneous
includes of this file caused problems interacting with the native_client/
source from components/nacl.

I tested this change locally with a disable_nacl=1 build.

BUG=none
R=mseaborn@chromium.org, sky@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285918 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Experimentally disable termination on heap corruption in order to measure the contribution of this feature to missing crash reports.

Because this feature is configured very early in the process lifetime it cannot be directly controlled by a field-trial. Rather, we query the status during a given execution, store that status in the registry, and then query the registry during startup. This means the experiment will only take effect the 2nd time it is executed.

BUG=394842

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284100

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285931 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
closure_linter: Fix "}.bind(" linter false positives after upgrading the linter.

BUG=397697
R=tbreisacher@chromium.org
NOTRY=true

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285933 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
kiosk: Fix flaky tests.

- Replace NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE with OobeScreenWaiter
  on gaia screen because the notification could fire prematurely before
  gaia screen is fully loaded;
- Mark device as registered for test so that owner auth UI for network
  down cases is consistently shown (instead of occasionally showing gaia);
- Ensure that transitioning to login screen (gaia or account picker) happens
  after auto launch app is configured to ensure the warning bubble is
  triggered to fix flaky AutolaunchWarning tests;
- Explicit trigger kiosk apps configure reload to ensure
  NOTIFICATION_KIOSK_APPS_LOADED is received for EnterpriseKioskApp;

BUG=378358,365507,396320,396334,396336,394032

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285937 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix how we use the new profile management flags.

We are first going to release --new-avatar-menu, which is essentially
what --new-profile-management used to be, minus the lock functionality.
(--new-avatar-menu used to be an opt-in intermediate step, so functionality
needs to be shuffled around.

Basically this is a lot of s/new-profile-management/new-avatar-menu/g.

BUG=391497
TEST=Start Chrome with --new-avatar-menu. You should see the new avatar
menu, but not the lock button on any of the signed in profiles.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285942 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Startup sound is enabled by default on the OOBE first screen.

BUG=358367
TEST=manual

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285944 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Refactoring isUrlReportable to isDistilledPage

Refactored and renamed isUrlReportable to isDistilledPage.  Also moved
dom distiller url scheme constant from chrome to components.

BUG=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285948 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Create separate NetworkingPrivate instance for incognito

BUG=396311

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285952 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Extend EnrollmentHandler to handle consumer management.

For consumer management, there are two main differences:

1. It does not lock device. Instead, it stores DM token and device id into
   PolicyData via DeviceSettingsService::SetManagementSettings().
2. It does not store policies (yet)

BUG=chromium:353050
TEST=none

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285966 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix the bug that Chrome crashes when request file system access from webview
guestand and WebViewPermissionHelper is NULL
Fix the bug when WebViewPersmissionHelper is NULL.

BUG=396962

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285968 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Experience Sampling API implementation

This CL includes the API JSON schema, the implementation of the API functions, and a class for creating and tracking sampling events (to simplify instrumenting UI with the onDisplay event). It also adds a new extension permission for experienceSamplingPrivate, and an empty whitelist.

BUG=384635

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285982 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Fix Touch Exploration tests so they don't break eager gesture detection.

Eager gesture detection is a little bit stricter about requiring
a valid event stream. The touch exploration tests give the
gesture detector an invalid event stream in a few places.

BUG=398106

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285983 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Do not dispatch ui::ET_GESTURE_BEGIN to Tab or TabStrip

We will no longer be dispatching GESTURE_BEGIN events
to views (crbug.com/397564), so Tab and TabStrip
should handle ui::ET_GESTURE_TAP_DOWN instead
of GESTURE_BEGIN.

BUG=397568
TEST=TabDragControllerTest.GestureEndShouldEndDragTest

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285984 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Cleanup: Rename ExtensionFunction::GetExtension to ExtensionFunction::extension.
It's a trivial accessor, and the setter is set_extension.

R=rockot@chromium.org
TBR=dmazzoni@chromium.org, pkasting@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@285996 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Add ExtensionService comments that various methods are deprecated.

R=yoz@chromium.org

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

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser@286002 4ff67af0-8c30-449e-8e8b-ad334ec8d88c