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

Unified Diff: ash/system/chromeos/session/tray_session_length_limit.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/session/tray_session_length_limit.cc
diff --git a/ash/system/chromeos/session/tray_session_length_limit.cc b/ash/system/chromeos/session/tray_session_length_limit.cc
index c1db839bc5a4092f387425a1e19b6c76a2125c6c..c60c5194bf401bd7e7ccef4d248558d712cea3d2 100644
--- a/ash/system/chromeos/session/tray_session_length_limit.cc
+++ b/ash/system/chromeos/session/tray_session_length_limit.cc
@@ -5,6 +5,7 @@
#include "ash/system/chromeos/session/tray_session_length_limit.h"
#include <algorithm>
+#include <memory>
#include <utility>
#include "ash/shell.h"
@@ -148,7 +149,7 @@ void TraySessionLengthLimit::UpdateNotification() {
message_center::RichNotificationData data;
data.should_make_spoken_feedback_for_popup_updates =
(limit_state_ != last_limit_state_);
- scoped_ptr<message_center::Notification> notification(
+ std::unique_ptr<message_center::Notification> notification(
new message_center::Notification(
message_center::NOTIFICATION_TYPE_SIMPLE, kNotificationId,
base::string16() /* title */,
« no previous file with comments | « ash/system/chromeos/session/tray_session_length_limit.h ('k') | ash/system/chromeos/supervised/tray_supervised_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698