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

Unified Diff: content/browser/power_usage_monitor_impl.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « content/browser/power_save_blocker_x11.cc ('k') | content/browser/power_usage_monitor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_usage_monitor_impl.h
diff --git a/content/browser/power_usage_monitor_impl.h b/content/browser/power_usage_monitor_impl.h
index 0e3b4e30274d23554883c160dac5993501d84820..a2c7e96a32f64dc4fa342d6d643ae34472f12219 100644
--- a/content/browser/power_usage_monitor_impl.h
+++ b/content/browser/power_usage_monitor_impl.h
@@ -63,7 +63,7 @@ class CONTENT_EXPORT PowerUsageMonitor : public base::PowerObserver,
// system boot.
void Start();
- void SetSystemInterfaceForTest(scoped_ptr<SystemInterface> interface);
+ void SetSystemInterfaceForTest(std::unique_ptr<SystemInterface> interface);
// Overridden from base::PowerObserver:
void OnPowerStateChange(bool on_battery_power) override;
@@ -93,12 +93,12 @@ class CONTENT_EXPORT PowerUsageMonitor : public base::PowerObserver,
void CancelPendingHistogramReporting();
device::BatteryStatusService::BatteryUpdateCallback callback_;
- scoped_ptr<device::BatteryStatusService::BatteryUpdateSubscription>
+ std::unique_ptr<device::BatteryStatusService::BatteryUpdateSubscription>
subscription_;
NotificationRegistrar registrar_;
- scoped_ptr<SystemInterface> system_interface_;
+ std::unique_ptr<SystemInterface> system_interface_;
// True if monitoring was started (Start() called).
bool started_;
« no previous file with comments | « content/browser/power_save_blocker_x11.cc ('k') | content/browser/power_usage_monitor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698