| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index 198ef85eff5ea1c6fe00b98806546df40724e1b0..479b4a91dcdcd28855face3342eadd4dbd67122b 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -707,7 +707,7 @@ int BrowserMainLoop::PreCreateThreads() {
|
| "BrowserMainLoop::CreateThreads:PreCreateThreads");
|
| TRACK_SCOPED_REGION("Startup", "BrowserMainLoop::PreCreateThreads");
|
|
|
| - result_code_ = parts_->PreCreateThreads();
|
| + result_code_ = parts_->PreCreateThreadsBegin();
|
| }
|
|
|
| // Initialize an instance of FeatureList. This will be a no-op if an instance
|
| @@ -749,7 +749,7 @@ int BrowserMainLoop::PreCreateThreads() {
|
| // 1) Need to initialize in-process GpuDataManager before creating threads.
|
| // It's unsafe to append the gpu command line switches to the global
|
| // CommandLine::ForCurrentProcess object after threads are created.
|
| - // 2) Must be after parts_->PreCreateThreads to pick up chrome://flags.
|
| + // 2) Must be after parts_->PreCreateThreadsBegin to pick up chrome://flags.
|
| GpuDataManagerImpl::GetInstance()->Initialize();
|
|
|
| #if !defined(OS_IOS) && (!defined(GOOGLE_CHROME_BUILD) || defined(OS_ANDROID))
|
| @@ -759,6 +759,11 @@ int BrowserMainLoop::PreCreateThreads() {
|
| RenderProcessHost::SetRunRendererInProcess(true);
|
| #endif
|
|
|
| + // parts may want to do some processing just before actually starting the
|
| + // threads.
|
| + if (parts_)
|
| + parts_->PreCreateThreadsEnd();
|
| +
|
| return result_code_;
|
| }
|
|
|
|
|