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

Unified Diff: chrome/browser/ui/app_list/app_list_model_builder.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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 | « no previous file | chrome/browser/ui/app_list/app_list_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_model_builder.cc
diff --git a/chrome/browser/ui/app_list/app_list_model_builder.cc b/chrome/browser/ui/app_list/app_list_model_builder.cc
index 97121582bd2561916d92f172d47652a0fa178117..c58a50e9414c6041dde9780cd06896364ad51f59 100644
--- a/chrome/browser/ui/app_list/app_list_model_builder.cc
+++ b/chrome/browser/ui/app_list/app_list_model_builder.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/app_list/app_list_model_builder.h"
+#include <utility>
+
#include "chrome/browser/ui/app_list/app_list_syncable_service.h"
#include "ui/app_list/app_list_item.h"
#include "ui/app_list/app_list_model.h"
@@ -42,10 +44,10 @@ void AppListModelBuilder::InitializeWithProfile(Profile* profile,
void AppListModelBuilder::InsertApp(scoped_ptr<app_list::AppListItem> app) {
if (service_) {
- service_->AddItem(app.Pass());
+ service_->AddItem(std::move(app));
return;
}
- model_->AddItem(app.Pass());
+ model_->AddItem(std::move(app));
}
const app_list::AppListSyncableService::SyncItem*
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698