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

Unified Diff: base/power_monitor/power_monitor_device_source_ios.mm

Issue 2351593004: Implement base::PowerMonitor::IsOnBatteryPower() for OSX. (Closed)
Patch Set: Invert setter. Created 4 years, 3 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: base/power_monitor/power_monitor_device_source_ios.mm
diff --git a/base/power_monitor/power_monitor_device_source_ios.mm b/base/power_monitor/power_monitor_device_source_ios.mm
index dc12f1c2952007200f227826c7e1ec046646dadd..3e86b2e246c5bed445e87cc374b16f9ce00a5941 100644
--- a/base/power_monitor/power_monitor_device_source_ios.mm
+++ b/base/power_monitor/power_monitor_device_source_ios.mm
@@ -8,6 +8,11 @@
namespace base {
+bool PowerMonitorDeviceSource::IsOnBatteryPowerImpl() {
Nico 2016/09/27 20:19:27 Is this used by anything on iOS? If not, maybe we
DaleCurtis 2016/09/27 20:53:42 ios_chrome_unittests fails to link without this, b
+ NOTIMPLEMENTED();
+ return false;
+}
+
void PowerMonitorDeviceSource::PlatformInit() {
NSNotificationCenter* nc = [NSNotificationCenter defaultCenter];
id foreground =

Powered by Google App Engine
This is Rietveld 408576698