Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1452)

Unified Diff: chrome/app/android/chrome_main_delegate_android.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/app/android/chrome_main_delegate_android.cc
diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/android/chrome_main_delegate_android.cc
index 24291dee569143a4790d52ad8c6863db5b071380..5905707e2ad9f0f5f74c0d99148a214a3f02e466 100644
--- a/chrome/app/android/chrome_main_delegate_android.cc
+++ b/chrome/app/android/chrome_main_delegate_android.cc
@@ -16,12 +16,14 @@
namespace {
+#if !defined(USE_AURA)
content::BrowserMediaPlayerManager* CreateRemoteMediaPlayerManager(
content::RenderFrameHost* render_frame_host,
content::MediaPlayersObserver* audio_monitor) {
return new remote_media::RemoteMediaPlayerManager(render_frame_host,
audio_monitor);
}
+#endif
} // namespace
@@ -50,8 +52,8 @@ int ChromeMainDelegateAndroid::RunProcess(
// Also only record the start time the first time round, since this is the
// start time of the application, and will be same for all requests.
if (!browser_runner_.get()) {
- base::Time startTime = chrome::android::GetMainEntryPointTime();
- startup_metric_utils::RecordSavedMainEntryPointTime(startTime);
+// base::Time startTime = chrome::android::GetMainEntryPointTime();
+// startup_metric_utils::RecordSavedMainEntryPointTime(startTime);
browser_runner_.reset(content::BrowserMainRunner::Create());
}
return browser_runner_->Initialize(main_function_params);
@@ -63,8 +65,10 @@ int ChromeMainDelegateAndroid::RunProcess(
bool ChromeMainDelegateAndroid::BasicStartupComplete(int* exit_code) {
SetChromeSpecificCommandLineFlags();
+#if !defined(USE_AURA)
content::BrowserMediaPlayerManager::RegisterFactory(
&CreateRemoteMediaPlayerManager);
+#endif
return ChromeMainDelegate::BasicStartupComplete(exit_code);
}

Powered by Google App Engine
This is Rietveld 408576698