| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index e815e8507701f245a34a0cbec2af4a4cb39fc02f..b60a566e23bb65a74e70145d45d82ab56d0df357 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -653,7 +653,7 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
|
| BrowserSurfaceTextureManager::GetInstance());
|
| }
|
| }
|
| -#if !defined(USE_AURA)
|
| +
|
| if (!parsed_command_line_.HasSwitch(
|
| switches::kDisableScreenOrientationLock)) {
|
| TRACE_EVENT0("startup",
|
| @@ -663,7 +663,6 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
|
| ScreenOrientationProvider::SetDelegate(screen_orientation_delegate_.get());
|
| }
|
| #endif
|
| -#endif
|
|
|
| #if defined(OS_MACOSX) && !defined(OS_IOS)
|
| if (BootstrapSandboxManager::ShouldEnable()) {
|
| @@ -1200,7 +1199,7 @@ int BrowserMainLoop::BrowserThreadsStarted() {
|
|
|
| bool always_uses_gpu = true;
|
| bool established_gpu_channel = false;
|
| -#if defined(OS_ANDROID) && !defined(USE_AURA)
|
| +#if defined(OS_ANDROID)
|
| // TODO(crbug.com/439322): This should be set to |true|.
|
| established_gpu_channel = false;
|
| BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
|
| @@ -1418,7 +1417,7 @@ base::FilePath BrowserMainLoop::GetStartupTraceFileName(
|
| return trace_file;
|
|
|
| if (trace_file.empty()) {
|
| -#if defined(OS_ANDROID) && !defined(USE_AURA)
|
| +#if defined(OS_ANDROID)
|
| TracingControllerAndroid::GenerateTracingFilePath(&trace_file);
|
| #else
|
| // Default to saving the startup trace into the current dir.
|
| @@ -1426,7 +1425,7 @@ base::FilePath BrowserMainLoop::GetStartupTraceFileName(
|
| #endif
|
| }
|
| } else {
|
| -#if defined(OS_ANDROID) && !defined(USE_AURA)
|
| +#if defined(OS_ANDROID)
|
| TracingControllerAndroid::GenerateTracingFilePath(&trace_file);
|
| #else
|
| trace_file = tracing::TraceConfigFile::GetInstance()->GetResultFile();
|
|
|