diff options
author | xians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-26 18:52:27 +0000 |
---|---|---|
committer | xians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-26 18:52:27 +0000 |
commit | 89c6eaf4699a352f9045bba2a22057a7acb12129 (patch) | |
tree | 4e1e2718dfbafb80ae32266b17a115f7925d6a78 /content/browser/browser_main_loop.cc | |
parent | 11ef5b6d4b1b747594a5e9fbb85dde319c8e228e (diff) | |
download | chromium_src-89c6eaf4699a352f9045bba2a22057a7acb12129.zip chromium_src-89c6eaf4699a352f9045bba2a22057a7acb12129.tar.gz chromium_src-89c6eaf4699a352f9045bba2a22057a7acb12129.tar.bz2 |
Revert 169449 - https://codereview.chromium.org/11364048/ increased the startup time on Mac by 40% since the enumeration API is done on the main thread.
Revert this first and will reland it once the problem is resolved.
TBR=thakis@chromium.org
BUG=161583
Review URL: https://codereview.chromium.org/11416184
TBR=xians@chromium.org
Review URL: https://codereview.chromium.org/11308201
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_main_loop.cc')
-rw-r--r-- | content/browser/browser_main_loop.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc index 912f7e8..9b84ee5 100644 --- a/content/browser/browser_main_loop.cc +++ b/content/browser/browser_main_loop.cc @@ -351,7 +351,6 @@ void BrowserMainLoop::MainMessageLoopStart() { } online_state_observer_.reset(new BrowserOnlineStateObserver); - media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get())); // Prior to any processing happening on the io thread, we create the // plugin service as it is predominantly used from the io thread, @@ -672,6 +671,9 @@ void BrowserMainLoop::BrowserThreadsStarted() { // RDH needs the IO thread to be created. resource_dispatcher_host_.reset(new ResourceDispatcherHostImpl()); + // MediaStreamManager needs the IO thread to be created. + media_stream_manager_.reset(new MediaStreamManager(audio_manager_.get())); + // Initialize the GpuDataManager before we set up the MessageLoops because // otherwise we'll trigger the assertion about doing IO on the UI thread. GpuDataManagerImpl::GetInstance()->Initialize(); |