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

Unified Diff: ash/system/chromeos/power/battery_notification.cc

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/battery_notification.cc
diff --git a/ash/system/chromeos/power/battery_notification.cc b/ash/system/chromeos/power/battery_notification.cc
index cd8b3ae4c9c8561769343fa388e15946ecbb79b3..d35868bf1ef6d7bf5fa4ac61c2193f38bfa78996 100644
--- a/ash/system/chromeos/power/battery_notification.cc
+++ b/ash/system/chromeos/power/battery_notification.cc
@@ -43,7 +43,7 @@ gfx::Image& GetBatteryImage(TrayPower::NotificationState notification_state) {
return ui::ResourceBundle::GetSharedInstance().GetImageNamed(resource_id);
}
-scoped_ptr<Notification> CreateNotification(
+std::unique_ptr<Notification> CreateNotification(
TrayPower::NotificationState notification_state) {
const PowerStatus& status = *PowerStatus::Get();
@@ -77,7 +77,7 @@ scoped_ptr<Notification> CreateNotification(
if (!time_message.empty())
message = message + base::ASCIIToUTF16("\n") + time_message;
- scoped_ptr<Notification> notification(new Notification(
+ std::unique_ptr<Notification> notification(new Notification(
message_center::NOTIFICATION_TYPE_SIMPLE, kBatteryNotificationId,
base::string16(), message, GetBatteryImage(notification_state),
base::string16(), GURL(),
« no previous file with comments | « ash/system/chromeos/power/battery_notification.h ('k') | ash/system/chromeos/power/dual_role_notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698