Index: chrome/browser/browser_main.cc |
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
index 5d05685f10d7834f0c54e759b33be5393f4db885..fc209eb372d71f909fd2e5544947e206d53115cf 100644 |
--- a/chrome/browser/browser_main.cc |
+++ b/chrome/browser/browser_main.cc |
@@ -96,6 +96,10 @@ |
#include "chrome/browser/gtk/gtk_util.h" |
#endif |
+#if defined(OS_CHROMEOS) |
+#include "chrome/browser/chromeos/boot_times_loader.h" |
+#endif |
+ |
// TODO(port): several win-only methods have been pulled out of this, but |
// BrowserMain() as a whole needs to be broken apart so that it's usable by |
// other platforms. For now, it's just a stub. This is a serious work in |
@@ -731,7 +735,6 @@ int BrowserMain(const MainFunctionParams& parameters) { |
// Register the main thread by instantiating it, but don't call any methods. |
ChromeThread main_thread(ChromeThread::UI, MessageLoop::current()); |
- |
#if defined(OS_POSIX) |
int pipefd[2]; |
int ret = pipe(pipefd); |
@@ -902,6 +905,11 @@ int BrowserMain(const MainFunctionParams& parameters) { |
CreateChildThreads(browser_process.get()); |
+#if defined(OS_CHROMEOS) |
+ // Now that the file thread exists we can record our stats. |
+ chromeos::BootTimesLoader::RecordChromeMainStats(); |
+#endif |
+ |
// Record last shutdown time into a histogram. |
browser_shutdown::ReadLastShutdownInfo(); |