Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 5aa05675e33cc87f5f3aa5705f246d69faaae1c6..ac82cb5bd1f1ad4ceb2c1c6ed09292d55452010b 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -596,7 +596,7 @@ void BrowserMainLoop::PostMainMessageLoopStart() { |
} |
#endif // !defined(OS_IOS) |
-#if defined(OS_ANDROID) |
+#if defined(OS_ANDROID) && !defined(USE_AURA) |
no sievers
2015/10/22 20:55:40
revert this
mfomitchev
2015/11/02 21:51:15
Removed for SurfaceTextureManager, left for Screen
|
{ |
TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:SurfaceTextureManager"); |
if (parsed_command_line_.HasSwitch(switches::kSingleProcess)) { |
@@ -767,13 +767,13 @@ void BrowserMainLoop::CreateStartupTasks() { |
&BrowserMainLoop::PreMainMessageLoopRun, base::Unretained(this)); |
startup_task_runner_->AddTask(pre_main_message_loop_run); |
-#if defined(OS_ANDROID) |
+#if defined(OS_ANDROID)// && !defined(USE_AURA) |
no sievers
2015/10/22 20:55:40
remove commented out code
mfomitchev
2015/11/02 21:51:15
Done.
|
if (BrowserMayStartAsynchronously()) { |
startup_task_runner_->StartRunningTasksAsync(); |
} |
#endif |
} |
-#if defined(OS_ANDROID) |
+#if defined(OS_ANDROID)// && !defined(USE_AURA) |
if (!BrowserMayStartAsynchronously()) { |
no sievers
2015/10/22 20:55:40
remove commented out code
mfomitchev
2015/11/02 21:51:15
Done.
|
// A second request for asynchronous startup can be ignored, so |
// StartupRunningTasksAsync is only called first time through. If, however, |
@@ -1162,7 +1162,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/10/22 20:55:40
remove these changes and TODO; it's ok to fall thr
mfomitchev
2015/11/02 21:51:15
What about set_context_factory below, don't we nee
|
+#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); |
@@ -1358,7 +1360,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. |
@@ -1366,7 +1368,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(); |