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

Unified Diff: chrome/browser/ui/app_list/app_list_service_unittest.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
Index: chrome/browser/ui/app_list/app_list_service_unittest.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_unittest.cc b/chrome/browser/ui/app_list/app_list_service_unittest.cc
index c1768b198ed866c33eb4112e57004e9ca2bcf02d..72f0e2b102365ef80ffee5f4da2b35aa11abdee7 100644
--- a/chrome/browser/ui/app_list/app_list_service_unittest.cc
+++ b/chrome/browser/ui/app_list/app_list_service_unittest.cc
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/ui/app_list/app_list_service.h"
+
+#include <utility>
+
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/macros.h"
@@ -12,7 +16,6 @@
#include "base/prefs/testing_pref_store.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profiles_state.h"
-#include "chrome/browser/ui/app_list/app_list_service.h"
#include "chrome/browser/ui/app_list/app_list_service_impl.h"
#include "chrome/browser/ui/app_list/test/fake_profile.h"
#include "chrome/browser/ui/app_list/test/fake_profile_store.h"
@@ -26,7 +29,7 @@ class TestingAppListServiceImpl : public AppListServiceImpl {
TestingAppListServiceImpl(const base::CommandLine& command_line,
PrefService* local_state,
scoped_ptr<ProfileStore> profile_store)
- : AppListServiceImpl(command_line, local_state, profile_store.Pass()),
+ : AppListServiceImpl(command_line, local_state, std::move(profile_store)),
showing_for_profile_(NULL),
destroy_app_list_call_count_(0) {}
@@ -99,7 +102,7 @@ class AppListServiceUnitTest : public testing::Test {
base::PrefServiceFactory factory;
factory.set_user_prefs(make_scoped_refptr(new TestingPrefStore));
- local_state_ = factory.Create(pref_registry).Pass();
+ local_state_ = factory.Create(pref_registry);
profile_store_ = new FakeProfileStore(user_data_dir_, local_state_.get());
service_.reset(new TestingAppListServiceImpl(
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_impl.cc ('k') | chrome/browser/ui/app_list/app_list_service_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698