| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index bf495b9acee30d23d3e376129b6ebe550fd0121c..9b3d27c823d7e087592044294ffa3788d2f4e6ef 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -614,13 +614,6 @@ int BrowserMainLoop::PreCreateThreads() {
|
| }
|
| #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).
|
| - if (parsed_command_line_.HasSwitch(switches::kSingleProcess))
|
| - RenderProcessHost::SetRunRendererInProcess(true);
|
| -#endif
|
| -
|
| // 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.
|
| @@ -640,6 +633,13 @@ int BrowserMainLoop::PreCreateThreads() {
|
| GpuDataManagerImpl::GetInstance()->Initialize();
|
| }
|
|
|
| +#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).
|
| + if (parsed_command_line_.HasSwitch(switches::kSingleProcess))
|
| + RenderProcessHost::SetRunRendererInProcess(true);
|
| +#endif
|
| +
|
| return result_code_;
|
| }
|
|
|
|
|