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

Unified Diff: content/public/app/content_main_delegate.cc

Issue 19957002: Run the later parts of startup as UI thread tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Run the later parts of startup as UI thread tasks - minor comment fixes Created 7 years, 5 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: content/public/app/content_main_delegate.cc
diff --git a/content/public/app/content_main_delegate.cc b/content/public/app/content_main_delegate.cc
index 88ce4aa912c1b8eb495ed1971711e198297a638c..3a75a8cb65d1216e064aa551cc29dbe7f18b2566 100644
--- a/content/public/app/content_main_delegate.cc
+++ b/content/public/app/content_main_delegate.cc
@@ -72,6 +72,11 @@ ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() {
#endif
}
+void ContentMainDelegate::SetStartupObserver(
+ scoped_ptr<StartupTaskRunner::Observer> observer) {
+ startup_observer_ = observer.Pass();
+}
+
ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() {
#if defined(OS_IOS) || defined(CHROME_MULTIPLE_DLL_BROWSER)
return NULL;
@@ -80,4 +85,8 @@ ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() {
#endif
}
+StartupTaskRunner::Observer* ContentMainDelegate::GetStartupObserver() {
+ return startup_observer_.get();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698