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

Unified Diff: device/battery/battery_status_manager.h

Issue 1874313002: Convert device 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 | « device/battery/battery_monitor_impl.h ('k') | device/battery/battery_status_manager_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status_manager.h
diff --git a/device/battery/battery_status_manager.h b/device/battery/battery_status_manager.h
index 5d8d8b81f428fbbf0fbbc2723b7fbae63d2f2cd2..b80579bc6a3028c5bffafc1c6d75b7d19ae4f651 100644
--- a/device/battery/battery_status_manager.h
+++ b/device/battery/battery_status_manager.h
@@ -5,7 +5,8 @@
#ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
#define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "device/battery/battery_status_service.h"
namespace device {
@@ -15,7 +16,7 @@ class BatteryStatusManager {
public:
// Creates a BatteryStatusManager object. |callback| should be called when the
// battery status changes.
- static scoped_ptr<BatteryStatusManager> Create(
+ static std::unique_ptr<BatteryStatusManager> Create(
const BatteryStatusService::BatteryUpdateCallback& callback);
virtual ~BatteryStatusManager() {}
« no previous file with comments | « device/battery/battery_monitor_impl.h ('k') | device/battery/battery_status_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698