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

Unified Diff: ui/app_list/folder_image_unittest.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/app_list_model.cc ('k') | ui/app_list/search/dictionary_data_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/folder_image_unittest.cc
diff --git a/ui/app_list/folder_image_unittest.cc b/ui/app_list/folder_image_unittest.cc
index 7929ebf72e4edca41c6804e688fbcf14bc4a1aa1..b5dcad5de26138e63a10b54e228f9f5911fab0df 100644
--- a/ui/app_list/folder_image_unittest.cc
+++ b/ui/app_list/folder_image_unittest.cc
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <string>
-
#include "ui/app_list/folder_image.h"
+#include <string>
+#include <utility>
+
#include "base/macros.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -75,7 +76,7 @@ class FolderImageTest : public testing::Test {
void AddAppWithColoredIcon(const std::string& id, SkColor icon_color) {
scoped_ptr<AppListItem> item(new AppListItem(id));
item->SetIcon(CreateSquareBitmapWithColor(kListIconSize, icon_color));
- app_list_model_.AddItem(item.Pass());
+ app_list_model_.AddItem(std::move(item));
}
AppListModel app_list_model_;
« no previous file with comments | « ui/app_list/app_list_model.cc ('k') | ui/app_list/search/dictionary_data_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698