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

Unified Diff: ui/app_list/test/app_list_test_model.cc

Issue 1539583003: Convert Pass()→std::move() in 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 | « ui/app_list/search_provider.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/test/app_list_test_model.cc
diff --git a/ui/app_list/test/app_list_test_model.cc b/ui/app_list/test/app_list_test_model.cc
index e263b0f99a5013d234920a6d752c3250b77e6a56..a7b5a30c490ccd11b2aa41b9dc67e29a665c84af 100644
--- a/ui/app_list/test/app_list_test_model.cc
+++ b/ui/app_list/test/app_list_test_model.cc
@@ -4,6 +4,8 @@
#include "ui/app_list/test/app_list_test_model.h"
+#include <utility>
+
#include "base/memory/scoped_ptr.h"
#include "base/strings/stringprintf.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -145,7 +147,7 @@ AppListTestModel::AppListTestItem* AppListTestModel::CreateItem(
AppListTestModel::AppListTestItem* AppListTestModel::CreateAndAddItem(
const std::string& id) {
scoped_ptr<AppListTestItem> test_item(CreateItem(id));
- AppListItem* item = AppListModel::AddItem(test_item.Pass());
+ AppListItem* item = AppListModel::AddItem(std::move(test_item));
return static_cast<AppListTestItem*>(item);
}
void AppListTestModel::HighlightItemAt(int index) {
« no previous file with comments | « ui/app_list/search_provider.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698