Chromium Code Reviews| Index: content/browser/browser_main_loop.cc |
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
| index 2dd1dfcbac165ab765f1635c5aba2e4712c42b8c..0ad245e72f50d8a8d7df6ad8d680d53fc52cdbed 100644 |
| --- a/content/browser/browser_main_loop.cc |
| +++ b/content/browser/browser_main_loop.cc |
| @@ -615,7 +615,8 @@ void BrowserMainLoop::PostMainMessageLoopStart() { |
| BrowserSurfaceTextureManager::GetInstance()); |
| } |
| } |
| - |
| + // TODO(mfomitchev): Screen Orientation APIs on Aura - crbug.com/546719. |
| +#if !defined(USE_AURA) |
| if (!parsed_command_line_.HasSwitch( |
| switches::kDisableScreenOrientationLock)) { |
| TRACE_EVENT0("startup", |
| @@ -625,6 +626,7 @@ void BrowserMainLoop::PostMainMessageLoopStart() { |
| ScreenOrientationProvider::SetDelegate(screen_orientation_delegate_.get()); |
| } |
| #endif |
| +#endif |
| #if defined(OS_MACOSX) && !defined(OS_IOS) |
| { |
| @@ -1172,7 +1174,9 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
| bool always_uses_gpu = true; |
| bool established_gpu_channel = false; |
| -#if defined(OS_ANDROID) |
| + // TODO(mfomitchev): Need ImageTransportFactory::Initialize on Android Aura, |
| + // but figure out what to do with BrowserGpuChannelHostFactory. |
|
no sievers
2015/11/02 22:27:15
i think you can remove the TODO.
mfomitchev
2015/11/03 22:23:19
Done.
|
| +#if defined(OS_ANDROID) && !defined(USE_AURA) |
| // TODO(crbug.com/439322): This should be set to |true|. |
| established_gpu_channel = false; |
| BrowserGpuChannelHostFactory::Initialize(established_gpu_channel); |
| @@ -1374,7 +1378,7 @@ base::FilePath BrowserMainLoop::GetStartupTraceFileName( |
| return trace_file; |
| if (trace_file.empty()) { |
| -#if defined(OS_ANDROID) |
| +#if defined(OS_ANDROID) && !defined(USE_AURA) |
| TracingControllerAndroid::GenerateTracingFilePath(&trace_file); |
| #else |
| // Default to saving the startup trace into the current dir. |
| @@ -1382,7 +1386,7 @@ base::FilePath BrowserMainLoop::GetStartupTraceFileName( |
| #endif |
| } |
| } else { |
| -#if defined(OS_ANDROID) |
| +#if defined(OS_ANDROID) && !defined(USE_AURA) |
| TracingControllerAndroid::GenerateTracingFilePath(&trace_file); |
| #else |
| trace_file = tracing::TraceConfigFile::GetInstance()->GetResultFile(); |