Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 1b7b49fb67303e5d1012d6ca5e7ffe0bbd546b9b..72f9aae826736400a08052d2c4d535a662acaba1 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -56,6 +56,7 @@ |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/notifications/desktop_notification_service_factory.h" |
#include "chrome/browser/page_cycler/page_cycler.h" |
+#include "chrome/browser/performance_monitor/performance_monitor.h" |
#include "chrome/browser/performance_monitor/startup_timer.h" |
#include "chrome/browser/plugin_prefs.h" |
#include "chrome/browser/prefs/pref_service.h" |
@@ -1430,6 +1431,12 @@ bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) { |
#else |
base::RunLoop run_loop; |
#endif |
+ |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kRunPerformanceMonitor)) { |
+ performance_monitor::PerformanceMonitor::GetInstance()->Start(); |
+ } |
+ |
run_loop.Run(); |
return true; |