Index: ui/message_center/message_center_tray_unittest.cc |
diff --git a/ui/message_center/message_center_tray_unittest.cc b/ui/message_center/message_center_tray_unittest.cc |
index 5277df2cdbf8ec49efdfa63fb66ac1e5cc59450a..1143e4043210eb4321629d99913467bc30c6b839 100644 |
--- a/ui/message_center/message_center_tray_unittest.cc |
+++ b/ui/message_center/message_center_tray_unittest.cc |
@@ -4,6 +4,8 @@ |
#include "ui/message_center/message_center_tray.h" |
+#include <utility> |
+ |
#include "base/strings/utf_string_conversions.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/base/models/menu_model.h" |
@@ -83,7 +85,7 @@ class MessageCenterTrayTest : public testing::Test { |
ASCIIToUTF16("Notification message body."), gfx::Image(), |
ASCIIToUTF16("www.test.org"), GURL(), notifier_id, |
message_center::RichNotificationData(), NULL /* delegate */)); |
- message_center_->AddNotification(notification.Pass()); |
+ message_center_->AddNotification(std::move(notification)); |
} |
scoped_ptr<MockDelegate> delegate_; |
scoped_ptr<MessageCenterTray> message_center_tray_; |
@@ -226,7 +228,7 @@ TEST_F(MessageCenterTrayTest, MessageCenterReopenPopupsForSystemPriority) { |
ASCIIToUTF16("www.test.org"), GURL(), DummyNotifierId(), |
message_center::RichNotificationData(), NULL /* delegate */)); |
notification->SetSystemPriority(); |
- message_center_->AddNotification(notification.Pass()); |
+ message_center_->AddNotification(std::move(notification)); |
ASSERT_TRUE(message_center_tray_->popups_visible()); |
ASSERT_FALSE(message_center_tray_->message_center_visible()); |
@@ -355,7 +357,7 @@ TEST_F(MessageCenterTrayTest, ContextMenuTestPopupsOnly) { |
ASCIIToUTF16("Notification message body."), gfx::Image(), |
base::string16() /* empty display source */, GURL(), notifier_id2, |
message_center::RichNotificationData(), NULL /* delegate */)); |
- message_center_->AddNotification(notification.Pass()); |
+ message_center_->AddNotification(std::move(notification)); |
AddNotification(id3, notifier_id); |