Index: chrome/app/chrome_dll_main.cc |
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc |
index 0f345afc806b9d964eb327eff9139ff39e586097..fa9566ef11717bceddcb052330c5a114d33ac244 100644 |
--- a/chrome/app/chrome_dll_main.cc |
+++ b/chrome/app/chrome_dll_main.cc |
@@ -90,6 +90,10 @@ |
#include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" |
#endif |
+#if defined(OS_CHROMEOS) |
+#include "chrome/browser/chromeos/boot_times_loader.h" |
+#endif |
+ |
extern int BrowserMain(const MainFunctionParams&); |
extern int RendererMain(const MainFunctionParams&); |
extern int GpuMain(const MainFunctionParams&); |
@@ -408,12 +412,7 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, |
int ChromeMain(int argc, char** argv) { |
#endif |
#if defined(OS_CHROMEOS) |
- // Output our start times. Save the result to appease warn_unused_result. |
- int result = 0; |
- result = system("if [ ! -f /tmp/uptime-chrome-main ]; " |
- "then cat /proc/uptime > /tmp/uptime-chrome-main ; fi"); |
- result = system("if [ ! -f /tmp/disk-chrome-main ]; " |
- "then cat /sys/block/sda/stat > /tmp/disk-chrome-main ; fi"); |
+ chromeos::BootTimesLoader::SaveChromeMainStats(); |
#endif |
#if defined(OS_MACOSX) |
// TODO(mark): Some of these things ought to be handled in chrome_exe_main.mm. |