Chromium Code Reviews| Index: base/power_monitor/power_monitor_ios.mm |
| diff --git a/base/power_monitor/power_monitor_ios.mm b/base/power_monitor/power_monitor_ios.mm |
| index f7c0b927567e46dd8283f4d32d74faa8befa86aa..dc12f1c2952007200f227826c7e1ec046646dadd 100644 |
| --- a/base/power_monitor/power_monitor_ios.mm |
| +++ b/base/power_monitor/power_monitor_ios.mm |
| @@ -2,13 +2,13 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "base/power_monitor/power_monitor.h" |
| +#include "base/power_monitor/power_monitor_device_source.h" |
| #import <UIKit/UIKit.h> |
| namespace base { |
| -void PowerMonitor::PlatformInit() { |
| +void PowerMonitorDeviceSource::PlatformInit() { |
|
Ken Russell (switch to Gerrit)
2013/07/02 09:05:15
This file should probably be renamed to power_moni
|
| NSNotificationCenter* nc = [NSNotificationCenter defaultCenter]; |
| id foreground = |
| [nc addObserverForName:UIApplicationWillEnterForegroundNotification |
| @@ -28,7 +28,7 @@ void PowerMonitor::PlatformInit() { |
| notification_observers_.push_back(background); |
| } |
| -void PowerMonitor::PlatformDestroy() { |
| +void PowerMonitorDeviceSource::PlatformDestroy() { |
| NSNotificationCenter* nc = [NSNotificationCenter defaultCenter]; |
| for (std::vector<id>::iterator it = notification_observers_.begin(); |
| it != notification_observers_.end(); ++it) { |