Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(948)

Unified Diff: content/browser/browser_main_loop.cc

Issue 16959023: Move plugin registry to after flag to switch conversion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 742d675d03cdf399dce5234679845faf2a7a1243..c566f0ae7de169c40e8e2f8bfd579d9a7b1bf578 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -436,17 +436,6 @@ void BrowserMainLoop::MainMessageLoopStart() {
}
#endif // !defined(OS_IOS)
-#if defined(ENABLE_PLUGINS)
- // Prior to any processing happening on the io thread, we create the
- // plugin service as it is predominantly used from the io thread,
- // but must be created on the main thread. The service ctor is
- // inexpensive and does not invoke the io_thread() accessor.
- {
- TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:PluginService")
- PluginService::GetInstance()->Init();
- }
-#endif
-
#if defined(OS_WIN)
system_message_window_.reset(new SystemMessageWindowWin);
@@ -488,10 +477,21 @@ void BrowserMainLoop::CreateThreads() {
if (parts_) {
TRACE_EVENT0("startup",
- "BrowserMainLoop::MainMessageLoopStart:PreCreateThreads");
+ "BrowserMainLoop::CreateThreads:PreCreateThreads");
result_code_ = parts_->PreCreateThreads();
}
+#if defined(ENABLE_PLUGINS)
+ // Prior to any processing happening on the io thread, we create the
+ // plugin service as it is predominantly used from the io thread,
+ // but must be created on the main thread. The service ctor is
+ // inexpensive and does not invoke the io_thread() accessor.
+ {
+ TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads:PluginService")
+ PluginService::GetInstance()->Init();
+ }
+#endif
+
#if !defined(OS_IOS) && (!defined(GOOGLE_CHROME_BUILD) || defined(OS_ANDROID))
// Single-process is an unsupported and not fully tested mode, so
// don't enable it for official Chrome builds (except on Android).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698