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 |