| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index d4425cc5d6ec4ba1c227ad942a3b5424e547a29b..86366b54d6cbee075feca8a2bead7f866c34ffa4 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -709,7 +709,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
|
| @@ -751,7 +751,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))
|
| @@ -761,6 +761,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_;
|
| }
|
|
|
|
|