Revert of Remove the unnecessary PathExists check for IME extension file paths. (https://codereview.chromium.org/426133004/)

Reason for revert:
Unlikely but one of the view chromeos specific changes that might have broken ChromeOS tests:

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Ozone%20Tests%20%282%29/builds/634

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%282%29/builds/25631

Original issue's description:
> Remove the unnecessary PathExists check for IME extension file paths.
> And makes sure the key events can bypass extension if no listener is added for onKeyEvent.
> 
> BUG=398289,397971
> TEST=Verified on sandbox.
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286785

TBR=yukishiino@chromium.org,shuchen@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=398289,397971

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286812 0039d316-1c4b-4281-b951-d872f2087c98
Fix line endings on BUILD.gn

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

This is step towards simplification of network configuration.

Using plain URLRequestContext will improve interoperability - either
content could create base URLRequestContext, or embedder may pass instance
to content for configuration.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286817 0039d316-1c4b-4281-b951-d872f2087c98
Generates Chromecast User-Agent string from current Chromium version.

R=mad@chromium.org,lcwu@chromium.org
BUG=391080

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286818 0039d316-1c4b-4281-b951-d872f2087c98
Basic Mojo message header validation for JavaScript.

This is the the second part of the original CL for "Validate incoming JS Message Headers", per https://codereview.chromium.org/406993002#msg2. The first part is https://codereview.chromium.org/411553003.

TBR=jochen@chromium.org
BUG=395801

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286819 0039d316-1c4b-4281-b951-d872f2087c98
Split OptionsPage into Page and PageManager.

This is the first step toward consolidating OptionsPage with similar code
in HelpBasePage.

I know this looks huge, but it's mostly renames -- the only changes
that aren't trivial are in:
* c/b/resources/options/options_page.js
* ui/webui/resources/js/cr/ui/page_helper/page.js
* ui/webui/resources/js/cr/ui/page_helper/page_manager.js

==========

This CL moves parts of OptionsPage to the new PageManager and Page objects.
These changes are essentally renames that shouldn't affect functionality.

cr.ui.pageManager.PageManager maintains a list of pages & overlays and can
show and hide overlays, scroll around as needed, etc. Basically what the
OptionsPage "static" members do for overlays.

cr.ui.pageManager.Page is basically the same as the OptionsPage prototype,
the essential attributes of each page/overlay. These will be managed by
the PageManager. Overlays and root pages like BrowserOptions will now descend
from Page.

These may not be the best names, and I don't know if cr.ui as at all the best
place for these classes -- let me know if you object or have better ideas.
Thanks.

==========

Future work:

* Move some logic back to OptionsPage by way of a handler to make
Page and PageManager independent of OptionsPage (e.g., for uber events,
history, and so forth)
* Transition the About page to use Page and PageManager and remove the
old code.
* Separate out bubble logic from general page manipulation.

==========

R=dbeam@chromium.org,stevenjb@chromium.org,

BUG=313244

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286820 0039d316-1c4b-4281-b951-d872f2087c98
[MemSheriff] DrMemory: broaden a suppression.

BUG=387394
TBR=thestig@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286822 0039d316-1c4b-4281-b951-d872f2087c98
gn win: Don't build quic_server, depends unconditionally on boringssl

R=brettw@chromium.org
TBR=rsleevi@chromium.org
BUG=354261

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286823 0039d316-1c4b-4281-b951-d872f2087c98
[MemSheriff] DrMemory: temporarily exclude a failing test.

BUG=399289
NOTRY=true
TBR=thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286824 0039d316-1c4b-4281-b951-d872f2087c98
Do not modify context menu location in emulation mode if it came from the host.

With the recent addition of host-supplied context menu location, we should
not apply emulation transform to it, since it's already coming from the
browser with right position.

BUG=395352

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286825 0039d316-1c4b-4281-b951-d872f2087c98
Roll CLD2 to r165, for simpler headers.

This completes work that was started in Chromium r285581. There was a change in
CLD2 that was mistakenly left out in CLD2 r163, which resulted in correct
compilation so long as all the implementation (cc) files were included; as we
continue the quest for CLD extraction in crbug/367239, we'd like to have code
depend upon just the CLD headers where possible and only pull in the
implementation code at link time. This requires the header correction in r165
because the source files will only be visible to a subset of CLD targets in
the relatively near future (and that can't happen till we get the new headers).

CLD2 rev: https://code.google.com/p/cld2/source/detail?r=165

BUG=367239
TBR=toyoshim

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286827 0039d316-1c4b-4281-b951-d872f2087c98
[MemSheriff] DrMemory: suppress uninitialized read.

BUG=399293
NOTRY=true
TBR=thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286828 0039d316-1c4b-4281-b951-d872f2087c98
Fix and cleanup Connect logic in Settings.

BUG=398692

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286829 0039d316-1c4b-4281-b951-d872f2087c98
[MemSheriff] DrMemory: suppress uninitialized reads in mojo.

BUG=398547
TBR=thestig@chromium.org
NOTRY=true
NOTREECHECKS=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286830 0039d316-1c4b-4281-b951-d872f2087c98
Web Notifications should always reappear as popups when updated.

The message center already does this for notifications with a higher
priority than the notification they replace, but this makes it explicit
for Web Notifications (which cannot indicate priority).

This patch re-enables the NotificationTest.TestNotificationReplacement
test, which was marked as DISABLED because of LSan failures.

BUG=366102, 366539

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286831 0039d316-1c4b-4281-b951-d872f2087c98
[Ozone-DRI] Add mirror mode support

BUG=none
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286832 0039d316-1c4b-4281-b951-d872f2087c98
[Telemetry] Disable more crashy gpu rasterization benchmarks.

This CL should be reverted once the crash is fixed along with a unittest.

BUG=399125
NOTRY=True
TBR=ernstm@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286833 0039d316-1c4b-4281-b951-d872f2087c98
aw: Flush idle queue on hardware teardown

Not flushing idle queue on tear down could lead to deadlocks.

BUG=399311

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286834 0039d316-1c4b-4281-b951-d872f2087c98
Clean up style in bisect-builds.py.

BUG=

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

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