Index: chrome/browser/extensions/event_router_forwarder_unittest.cc |
diff --git a/chrome/browser/extensions/event_router_forwarder_unittest.cc b/chrome/browser/extensions/event_router_forwarder_unittest.cc |
index 807899d57b684648eab8fd47e00065f726ced6da..faf51fb8370f00c29055cdeb8421467a74a3477b 100644 |
--- a/chrome/browser/extensions/event_router_forwarder_unittest.cc |
+++ b/chrome/browser/extensions/event_router_forwarder_unittest.cc |
@@ -97,11 +97,7 @@ |
#endif |
scoped_ptr<base::PowerMonitorSource> power_monitor_source( |
new base::PowerMonitorDeviceSource()); |
- base::PowerMonitor::Initialize(power_monitor_source.Pass()); |
- } |
- |
- virtual ~EventRouterForwarderTest() { |
- base::PowerMonitor::ShutdownForTesting(); |
+ dummy.reset(new base::PowerMonitor(power_monitor_source.Pass())); |
} |
virtual void SetUp() { |
@@ -118,6 +114,7 @@ |
content::TestBrowserThread ui_thread_; |
content::TestBrowserThread io_thread_; |
TestingProfileManager profile_manager_; |
+ scoped_ptr<base::PowerMonitor> dummy; |
// Profiles are weak pointers, owned by ProfileManager in |browser_process_|. |
TestingProfile* profile1_; |
TestingProfile* profile2_; |