Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3260)

Unified Diff: chrome/plugin/plugin_main.cc

Issue 431008: Make SystemMonitor not a Singleton and move it out of base (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix ChromeFrame build Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/plugin/plugin_main.cc
diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc
index 0b67360c82399dd27e67be5d841e974893b0045d..979430517c7591d218fd8c0570aa7c53c9c473e9 100644
--- a/chrome/plugin/plugin_main.cc
+++ b/chrome/plugin/plugin_main.cc
@@ -4,13 +4,14 @@
#include "build/build_config.h"
+#include "app/hi_res_timer_manager.h"
+#include "app/system_monitor.h"
#if defined(OS_WIN)
#include "app/win_util.h"
#endif
#include "base/command_line.h"
#include "base/message_loop.h"
#include "base/string_util.h"
-#include "base/system_monitor.h"
#include "chrome/common/child_process.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
@@ -89,8 +90,8 @@ int PluginMain(const MainFunctionParams& parameters) {
std::wstring app_name = chrome::kBrowserAppName;
PlatformThread::SetName(WideToASCII(app_name + L"_PluginMain").c_str());
- // Initialize the SystemMonitor
- base::SystemMonitor::Start();
+ SystemMonitor system_monitor;
+ HighResolutionTimerManager high_resolution_timer_manager;
#if defined(OS_MACOSX)
TrimInterposeEnvironment();

Powered by Google App Engine
This is Rietveld 408576698