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

Unified Diff: ash/system/chromeos/bluetooth/bluetooth_notification_controller.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
« no previous file with comments | « ash/shell.cc ('k') | ash/system/chromeos/power/battery_notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc
diff --git a/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc b/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc
index bb8164da841b9911018bbdd06a568ff16b838743..eb12ea7f129cd6b47fa28170dc0f9d4d2efe24e1 100644
--- a/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc
+++ b/ash/system/chromeos/bluetooth/bluetooth_notification_controller.cc
@@ -4,6 +4,8 @@
#include "ash/system/chromeos/bluetooth/bluetooth_notification_controller.h"
+#include <utility>
+
#include "ash/system/system_notifier.h"
#include "base/bind.h"
#include "base/callback.h"
@@ -283,7 +285,8 @@ void BluetoothNotificationController::NotifyAdapterDiscoverable() {
message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT,
system_notifier::kNotifierBluetooth),
optional, NULL));
- message_center::MessageCenter::Get()->AddNotification(notification.Pass());
+ message_center::MessageCenter::Get()->AddNotification(
+ std::move(notification));
}
void BluetoothNotificationController::NotifyPairing(
@@ -311,7 +314,8 @@ void BluetoothNotificationController::NotifyPairing(
system_notifier::kNotifierBluetooth),
optional, new BluetoothPairingNotificationDelegate(
adapter_, device->GetAddress())));
- message_center::MessageCenter::Get()->AddNotification(notification.Pass());
+ message_center::MessageCenter::Get()->AddNotification(
+ std::move(notification));
}
void BluetoothNotificationController::NotifyPairedDevice(
@@ -336,7 +340,8 @@ void BluetoothNotificationController::NotifyPairedDevice(
message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT,
system_notifier::kNotifierBluetooth),
optional, NULL));
- message_center::MessageCenter::Get()->AddNotification(notification.Pass());
+ message_center::MessageCenter::Get()->AddNotification(
+ std::move(notification));
}
} // namespace ash
« no previous file with comments | « ash/shell.cc ('k') | ash/system/chromeos/power/battery_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698