| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 1988781b2438d2d2c1b9a33193ec4b08d8207e53..e2e7b468c243cb8e54fdc60d758f7d4dc499895d 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"
|
| @@ -1429,6 +1430,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;
|
|
|