Revert 216780 "Clean up compositor initialization/destruction."

> Clean up compositor initialization/destruction.
> 
> Moved from https://codereview.chromium.org/21052007/
> 
> Currently the ContextFactory is outliving the compositor thread in 
> tests, which is bad since the contexts in there can be bound to the 
> compositor thread. Then we end up reusing those contexts and bad 
> things happen. 
> 
> This enforces ordering for initializing and destroying the 
> compositor as follows: 
> 
> Initialize ContextFactory 
> ..Compositor::Initialize 
> ....Create Compositor instances 
> ....Delete Compositor instances 
> ..Compositor::Terminate 
> 
> The Compositor::Terminate call also destroys the ContextFactory. 
> 
> The ContextFactory can be initialized in one of two ways: 
> 1. ImageTransportFactory::Initialize will set up the 
> ContextFactory. This is used by things that invoke all of 
> content/browser/. 
> 2. Compositor::InitializeContextFactoryForTests() must be 
> explicitly called by any unit tests that create a compositor. 
> 
> Since some tests want a real GL context and some don't, this 
> does away with the misnomer of initializing the Compositor once 
> for the entire test suite, and then re-initializing somewhere 
> in the middle of the test suite. Instead, each test must 
> Initialize/Terminate the compositor with the ContextFactory 
> type of its choice. 
> 
> Incidently, this test enables 20 tests on aura or win_aura that 
> were previously being skipped. 
> 
> TBR=piman@chromium.org
> BUG=258625
> 
> Review URL: https://chromiumcodereview.appspot.com/22293003

TBR=danakj@chromium.org

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216909 0039d316-1c4b-4281-b951-d872f2087c98
Views Textfield: multiple clicks should alternate between double and triple click behavior

Currently, consecutive clicks will produce this behavior: single-click, double-click, triple-click, single-click, double-click, ...
This should match the Win behavior, which is: single-click, double-click, triple-click, double-click, triple-click, ...

BUG=234344

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216914 0039d316-1c4b-4281-b951-d872f2087c98
Create system tray item for accessing chrome://slow

BUG=269843

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216915 0039d316-1c4b-4281-b951-d872f2087c98
Reland "216874 - Use overview mode for alt-tab cycling."

Fixes valgrind failure and relands overview mode using alt-tab.

BUG=263481, 264289
TEST=WindowSelectorTest.Basic,WindowSelectorTest.BasicCycle
TEST=Enable --ash-enable-overview-mode and use alt-tab to cycle through MRU windows. Cycling is done in overview mode on active display.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216916 0039d316-1c4b-4281-b951-d872f2087c98
Notify ThemeService via callback when supervised user is ready.

We didn't show the supervised user theme when a supervised user
was created. This CL fixes this by running a callback when the
supervised user profile is fully initialized. This also fixes
the bug that the label string was not drawn on Windows.

BUG=265387,269718
TEST=Created a supervised user, added a unit test.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216917 0039d316-1c4b-4281-b951-d872f2087c98
NaCl: Update revision in DEPS, r11963 -> r11988

This is clone of https://codereview.chromium.org/22325019/ but
with a minor tweak to shim_ppapi.c to handle the interface name
that changed.

This pulls in the following Native Client changes:

r11964: (sbc) Add IRT interface for new syscalls (chdir/mkdir/rmdir/etc)
r11965: (jfb) Add pthread_mutex_timedlock.
r11966: (jfb) Test C++11 <thread> for PNaCl
r11967: (jfb) Update PNaCl DEPS
r11968: (khim) Update gcc revision in tools/REVISIONS
r11969: (halyavin) Update toolchain revision.
r11970: (halyavin) Enable base address hiding for PNaCl gdb tests.
r11971: (jfb) Update TOOL_REVISIONS for PNaCl 11956->11967
r11972: (jvoung) Adjust perf_expectations for perf_improve (mostly transfersize, some runtime).
r11973: (mseaborn) Thread suspension: Enable stress test for context switches on ARM
r11974: (phosek) Consistent mprotect behavior across all platforms
r11975: (jvoung) Remove old experimental pnacl_ld_experiments.
r11976: (eliben) Prune more unused stuff when building the PNaCl toolchain
r11977: (bradnelson) Pulling in different glibc revision.
r11978: (stichnot) Allow testing non-default clang/llc optimization settings.
r11979: (bradnelson) Allowing r/w PT_DYNAMIC in addition to r-only.
r11980: (dschuff) Add a README file describing the directory layout of the PNaCl toolchain
r11981: (sbc) Rename PNaCl toolchain folder within the SDK.
r11982: (jvoung) Move PNaCl drivers from <base>/newlib/bin to <base>/bin.
r11983: (jfb) PNaCl: Update LLVM revision in pnacl/DEPS
r11984: (dschuff) Revert "Rename PNaCl toolchain folder within the SDK."
r11985: (jfb) Update pnacl/DEPS for libstdc++
r11986: (jfb) Revert "Allow testing non-default clang/llc optimization settings."
r11987: (jfb) Update TOOL_REVISIONS for PNaCl 11967->11986
r11988: (jfb) Add end-to-end tests that C++11 headers can be included.


BUG=none
TEST=browser_tests and nacl_integration
NOTRY=true

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216919 0039d316-1c4b-4281-b951-d872f2087c98
Add WebRTC test configurations for Android testing.

BUG=webrtc:1882
TEST=From a recent WebRTC checkout:
source build/android/envsetup.sh
gclient runhooks
ninja -C out/Debug
build/android/run_test.py -s webrtc

I also successful ran builder and tester with the buildbot
configuration in https://codereview.chromium.org/17390019
using a locally patched checkout.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216920 0039d316-1c4b-4281-b951-d872f2087c98
Remove media files used with tough_video_cases in favor of uploading them to google storage. 

Later CL commits local .sha1 files to link to uploaded media files.

BUG=261318

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216921 0039d316-1c4b-4281-b951-d872f2087c98
Stop pulling googleurl through DEPS.

This is the final patch in this series of merging the external googleurl repo
into Chromium source code base.

BUG=229660
R=brettw@chromium.org,joth@chromium.org,blundell@chromium.org,thakis@chromium.org,thestig@chromium.org
TBR=brettw

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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216923 0039d316-1c4b-4281-b951-d872f2087c98
file_manager: Split file browser handlers stuff into separate files

Just moving code around. No semantics changed.

BUG=270429
TEST=none
R=mtomasz@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216924 0039d316-1c4b-4281-b951-d872f2087c98
Fix PowerSaveBlocker crash in Android WebView

GetView returns NULL in Android WebView (see comment in
ContentViewCoreImpl::GetWindowAndroid), so do not invoke
power save block. This is ok since this should be controlled
by embedding app through existing Java APIs.

PowerSaveBlock is invoked for video playback.

BUG=239760

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216925 0039d316-1c4b-4281-b951-d872f2087c98
Use TestBrowserThreadBundle in MediaGalleriesPreferences tests.

Simplify code and potentially plug a memory leak.

BUG=270940
R=thestig@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216926 0039d316-1c4b-4281-b951-d872f2087c98
Turn off search terms replacement if a page doesn't support instant.

BUG=248535
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216927 0039d316-1c4b-4281-b951-d872f2087c98
views/location_bar: Eliminate TouchableLocationBarView.

Instead of inheriting from it move the functions into LocationBarView.

BUG=260446
R=pkasting@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216928 0039d316-1c4b-4281-b951-d872f2087c98
Rename BrowserThread::IsWellKnownThread to IsThreadInitialized.

This name is a better description of what this function does.

Also, IsThreadInitialized now DCHECKS if identifier is out of enum range,
instead of returning false.

BUG=268212

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216931 0039d316-1c4b-4281-b951-d872f2087c98
Remove crogers@google.com from media/audio/OWNERS

TBR=crogers@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216932 0039d316-1c4b-4281-b951-d872f2087c98
aura: Fix crash in RootWindowHostX11::GetXImage().

r195926 accidentally broke a NULL check against
XGetImage()'s return value.

BUG=270311

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

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