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

Unified Diff: ash/shell/window_watcher.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/window_type_launcher.cc ('k') | ash/system/audio/tray_audio.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index bd5d148516d33b5ce2fa05a905694f543565f822..e8163b257f59004f0e65a014af01f5b75f499662 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -4,6 +4,8 @@
#include "ash/shell/window_watcher.h"
+#include <utility>
+
#include "ash/display/window_tree_host_manager.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_item_delegate_manager.h"
@@ -118,7 +120,7 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
Shell::GetInstance()->shelf_item_delegate_manager();
scoped_ptr<ShelfItemDelegate> delegate(
new WindowWatcherShelfItemDelegate(id, this));
- manager->SetShelfItemDelegate(id, delegate.Pass());
+ manager->SetShelfItemDelegate(id, std::move(delegate));
SetShelfIDForWindow(id, new_window);
}
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/system/audio/tray_audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698