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

Unified Diff: ash/system/chromeos/session/tray_session_length_limit.cc

Issue 1551133002: Convert Pass()→std::move() in //ash (CrOS edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 980e7a57358b9fdc09eadb9014cabe2bc2ff9fac..c1db839bc5a4092f387425a1e19b6c76a2125c6c 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 <utility>
#include "ash/shell.h"
#include "ash/system/chromeos/label_tray_view.h"
@@ -161,9 +162,10 @@ void TraySessionLengthLimit::UpdateNotification() {
data, NULL /* delegate */));
notification->SetSystemPriority();
if (message_center->FindVisibleNotificationById(kNotificationId))
- message_center->UpdateNotification(kNotificationId, notification.Pass());
+ message_center->UpdateNotification(kNotificationId,
+ std::move(notification));
else
- message_center->AddNotification(notification.Pass());
+ message_center->AddNotification(std::move(notification));
last_limit_state_ = limit_state_;
}
« no previous file with comments | « ash/system/chromeos/session/logout_confirmation_controller.cc ('k') | ash/system/chromeos/supervised/tray_supervised_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698