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

Unified Diff: ash/system/chromeos/power/dual_role_notification.h

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
Index: ash/system/chromeos/power/dual_role_notification.h
diff --git a/ash/system/chromeos/power/dual_role_notification.h b/ash/system/chromeos/power/dual_role_notification.h
index 8cd6ab3c91377dcd5f3d11865a2da85f09d56d45..d99009300c7b1d1f3caa7d7156c41fb594d9a3e0 100644
--- a/ash/system/chromeos/power/dual_role_notification.h
+++ b/ash/system/chromeos/power/dual_role_notification.h
@@ -7,10 +7,11 @@
#include <stddef.h>
+#include <memory>
+
#include "ash/ash_export.h"
#include "ash/system/chromeos/power/power_status.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace message_center {
class MessageCenter;
@@ -31,11 +32,11 @@ class ASH_EXPORT DualRoleNotification {
private:
// Creates the notification using the updated status.
- scoped_ptr<message_center::Notification> CreateNotification();
+ std::unique_ptr<message_center::Notification> CreateNotification();
message_center::MessageCenter* message_center_;
- scoped_ptr<PowerStatus::PowerSource> dual_role_source_;
- scoped_ptr<PowerStatus::PowerSource> dual_role_sink_;
+ std::unique_ptr<PowerStatus::PowerSource> dual_role_source_;
+ std::unique_ptr<PowerStatus::PowerSource> dual_role_sink_;
size_t num_dual_role_sinks_;
bool line_power_connected_;
« no previous file with comments | « ash/system/chromeos/power/battery_notification.cc ('k') | ash/system/chromeos/power/dual_role_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698