Index: chrome/browser/chrome_browser_main.h |
diff --git a/chrome/browser/chrome_browser_main.h b/chrome/browser/chrome_browser_main.h |
index 26f22a66d1d57f064ae2dd423beadd38794b1948..93bf58f5dce76a4894bd2ecfef0c86588202147f 100644 |
--- a/chrome/browser/chrome_browser_main.h |
+++ b/chrome/browser/chrome_browser_main.h |
@@ -56,6 +56,9 @@ class ChromeBrowserMainParts : public content::BrowserMainParts { |
const content::MainFunctionParams& parameters); |
// content::BrowserMainParts overrides. |
+ // These are called in-order by content::BrowserMainLoop. |
+ // Each stage calls the same stages in any ChromeBrowserMainExtraParts added |
+ // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. |
virtual void PreEarlyInitialization() OVERRIDE; |
virtual void PostEarlyInitialization() OVERRIDE; |
virtual void ToolkitInitialized() OVERRIDE; |
@@ -71,6 +74,13 @@ class ChromeBrowserMainParts : public content::BrowserMainParts { |
virtual void PostStopThread(content::BrowserThread::ID identifier) OVERRIDE; |
virtual void PostDestroyThreads() OVERRIDE; |
+ // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
+ // in order from PreMainMessageLoopStart(). See implementation for details. |
+ virtual void PreProfileInit(); |
+ virtual void PostProfileInit(); |
+ virtual void PreBrowserStart(); |
+ virtual void PostBrowserStart(); |
+ |
// Displays a warning message that we can't find any locale data files. |
virtual void ShowMissingLocaleMessageBox() = 0; |
@@ -82,6 +92,7 @@ class ChromeBrowserMainParts : public content::BrowserMainParts { |
} |
Profile* profile() { return profile_; } |
+ MetricsService* metrics() { return metrics_; } |
private: |
// Methods for |EarlyInitialization()| --------------------------------------- |