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

Unified Diff: ash/shell/window_type_launcher.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
« no previous file with comments | « ash/shell/content/client/shell_content_browser_client.cc ('k') | ash/shell/window_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_type_launcher.cc
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc
index c681be8e63a5b608f902b1d190743d6baf2b32d5..48058910b433dd12b8e160f19cfef250eefb4aa2 100644
--- a/ash/shell/window_type_launcher.cc
+++ b/ash/shell/window_type_launcher.cc
@@ -4,6 +4,8 @@
#include "ash/shell/window_type_launcher.h"
+#include <utility>
+
#include "ash/content/shell_content_state.h"
#include "ash/root_window_controller.h"
#include "ash/session/session_state_delegate.h"
@@ -320,9 +322,12 @@ void WindowTypeLauncher::ButtonPressed(views::Button* sender,
"test-id"),
message_center::RichNotificationData(), NULL /* delegate */));
- ash::Shell::GetPrimaryRootWindowController()->shelf()->status_area_widget()
- ->web_notification_tray()->message_center()
- ->AddNotification(notification.Pass());
+ ash::Shell::GetPrimaryRootWindowController()
+ ->shelf()
+ ->status_area_widget()
+ ->web_notification_tray()
+ ->message_center()
+ ->AddNotification(std::move(notification));
} else if (sender == examples_button_) {
views::examples::ShowExamplesWindowWithContent(
views::examples::DO_NOTHING_ON_CLOSE,
« no previous file with comments | « ash/shell/content/client/shell_content_browser_client.cc ('k') | ash/shell/window_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698