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

Unified Diff: ash/system/chromeos/power/battery_notification.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/power/battery_notification.cc
diff --git a/ash/system/chromeos/power/battery_notification.cc b/ash/system/chromeos/power/battery_notification.cc
index 664aa391961ee7b830fce5cfa731a78d0bc91fd0..cd8b3ae4c9c8561769343fa388e15946ecbb79b3 100644
--- a/ash/system/chromeos/power/battery_notification.cc
+++ b/ash/system/chromeos/power/battery_notification.cc
@@ -94,8 +94,7 @@ BatteryNotification::BatteryNotification(
MessageCenter* message_center,
TrayPower::NotificationState notification_state)
: message_center_(message_center) {
- message_center_->AddNotification(
- CreateNotification(notification_state).Pass());
+ message_center_->AddNotification(CreateNotification(notification_state));
}
BatteryNotification::~BatteryNotification() {
@@ -106,8 +105,8 @@ BatteryNotification::~BatteryNotification() {
void BatteryNotification::Update(
TrayPower::NotificationState notification_state) {
if (message_center_->FindVisibleNotificationById(kBatteryNotificationId)) {
- message_center_->UpdateNotification(
- kBatteryNotificationId, CreateNotification(notification_state).Pass());
+ message_center_->UpdateNotification(kBatteryNotificationId,
+ CreateNotification(notification_state));
}
}
« no previous file with comments | « ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc ('k') | ash/system/chromeos/power/tray_power.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698