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

Unified Diff: ash/shell/app_list.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.cc ('k') | ash/shell/content/client/shell_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/app_list.cc
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
index b4581d83f9f76378132d4b07ae865298eca4da6b..a85e4d1f870f6411ccc789f72aee4e1719d6c067 100644
--- a/ash/shell/app_list.cc
+++ b/ash/shell/app_list.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <string>
+#include <utility>
#include <vector>
#include "ash/session/session_state_delegate.h"
@@ -218,7 +219,7 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate {
std::string id = base::IntToString(i);
scoped_ptr<WindowTypeShelfItem> shelf_item(
new WindowTypeShelfItem(id, type));
- model_->AddItem(shelf_item.Pass());
+ model_->AddItem(std::move(shelf_item));
}
}
« no previous file with comments | « ash/shell.cc ('k') | ash/shell/content/client/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698