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

Unified Diff: ash/system/chromeos/power/tray_power.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 4 years, 12 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/tray_power.cc
diff --git a/ash/system/chromeos/power/tray_power.cc b/ash/system/chromeos/power/tray_power.cc
index a23b52a57692bf3d2481aa075fe498bc9efdd943..01557efc6d6ecb6f187b18e15e523b2faff9543c 100644
--- a/ash/system/chromeos/power/tray_power.cc
+++ b/ash/system/chromeos/power/tray_power.cc
@@ -4,6 +4,8 @@
#include "ash/system/chromeos/power/tray_power.h"
+#include <utility>
+
#include "ash/accessibility_delegate.h"
#include "ash/ash_switches.h"
#include "ash/shell.h"
@@ -230,7 +232,7 @@ bool TrayPower::MaybeShowUsbChargerNotification() {
system_notifier::kNotifierPower),
message_center::RichNotificationData(),
new UsbNotificationDelegate(this)));
- message_center_->AddNotification(notification.Pass());
+ message_center_->AddNotification(std::move(notification));
return true;
} else if (!usb_charger_is_connected && usb_charger_was_connected_) {
// USB charger was unplugged or was identified as a different type while
« no previous file with comments | « ash/system/chromeos/power/battery_notification.cc ('k') | ash/system/chromeos/screen_security/screen_capture_tray_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698