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

Unified Diff: content/browser/gamepad/gamepad_test_helpers.cc

Issue 10959020: SystemMonitor refactoring: move power state monitor into a separate class called PowerMonitor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Revert using Singleton pattern for PowerMonitor Created 8 years, 2 months 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: content/browser/gamepad/gamepad_test_helpers.cc
diff --git a/content/browser/gamepad/gamepad_test_helpers.cc b/content/browser/gamepad/gamepad_test_helpers.cc
index abf4187a46f602435880285c0a1287955d7b3779..1938483b3ce411d020ca5c2d7c59b5f8c0f5db05 100644
--- a/content/browser/gamepad/gamepad_test_helpers.cc
+++ b/content/browser/gamepad/gamepad_test_helpers.cc
@@ -4,7 +4,7 @@
#include "content/browser/gamepad/gamepad_test_helpers.h"
-#include "base/system_monitor/system_monitor.h"
+#include "base/power_monitor/power_monitor.h"
#include "content/browser/gamepad/gamepad_service.h"
namespace content {
@@ -38,9 +38,8 @@ void MockGamepadDataFetcher::SetTestData(const WebKit::WebGamepads& new_data) {
GamepadTestHelper::GamepadTestHelper() {
#if defined(OS_MACOSX)
- base::SystemMonitor::AllocateSystemIOPorts();
+ base::PowerMonitor::AllocateSystemIOPorts();
vandebo (ex-Chrome) 2012/10/29 18:04:38 This probably isn't needed.
Hongbo Min 2012/10/30 14:33:47 Remove it now.
#endif
- system_monitor_.reset(new base::SystemMonitor);
}
GamepadTestHelper::~GamepadTestHelper() {

Powered by Google App Engine
This is Rietveld 408576698