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

Unified Diff: ash/system/web_notification/web_notification_tray_unittest.cc

Issue 1547223002: Convert Pass()→std::move() in //ash (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/web_notification/web_notification_tray_unittest.cc
diff --git a/ash/system/web_notification/web_notification_tray_unittest.cc b/ash/system/web_notification/web_notification_tray_unittest.cc
index 79269a42c7666237e5261df87c12e998577fd6cf..946e3ce22f5803d41f0724f0cc230925d53b8486 100644
--- a/ash/system/web_notification/web_notification_tray_unittest.cc
+++ b/ash/system/web_notification/web_notification_tray_unittest.cc
@@ -4,6 +4,7 @@
#include "ash/system/web_notification/web_notification_tray.h"
+#include <utility>
#include <vector>
#include "ash/display/display_manager.h"
@@ -107,7 +108,7 @@ class WebNotificationTrayTest : public test::AshTestBase {
base::ASCIIToUTF16("www.test.org"), GURL(),
message_center::NotifierId(), message_center::RichNotificationData(),
NULL /* delegate */));
- GetMessageCenter()->AddNotification(notification.Pass());
+ GetMessageCenter()->AddNotification(std::move(notification));
}
void UpdateNotification(const std::string& old_id,
@@ -120,7 +121,7 @@ class WebNotificationTrayTest : public test::AshTestBase {
base::ASCIIToUTF16("www.test.org"), GURL(),
message_center::NotifierId(), message_center::RichNotificationData(),
NULL /* delegate */));
- GetMessageCenter()->UpdateNotification(old_id, notification.Pass());
+ GetMessageCenter()->UpdateNotification(old_id, std::move(notification));
}
void RemoveNotification(const std::string& id) {
« no previous file with comments | « ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc ('k') | ash/test/test_shelf_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698