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

Unified Diff: ios/chrome/browser/history/history_service_factory.cc

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert accidental //base change Created 4 years, 11 months 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 | « ios/chrome/browser/favicon/large_icon_cache.cc ('k') | ios/chrome/browser/infobars/infobar.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/history/history_service_factory.cc
diff --git a/ios/chrome/browser/history/history_service_factory.cc b/ios/chrome/browser/history/history_service_factory.cc
index 9514dd8448c1be19c9f4f6ef1c0ad06f48c63956..cebdaf52c262754e9242312074b101e55c4fab30 100644
--- a/ios/chrome/browser/history/history_service_factory.cc
+++ b/ios/chrome/browser/history/history_service_factory.cc
@@ -4,6 +4,8 @@
#include "ios/chrome/browser/history/history_service_factory.h"
+#include <utility>
+
#include "base/memory/singleton.h"
#include "base/prefs/pref_service.h"
#include "components/history/core/browser/history_database_params.h"
@@ -80,7 +82,7 @@ scoped_ptr<KeyedService> HistoryServiceFactory::BuildServiceInstanceFor(
browser_state->GetStatePath()))) {
return nullptr;
}
- return history_service.Pass();
+ return std::move(history_service);
}
web::BrowserState* HistoryServiceFactory::GetBrowserStateToUse(
« no previous file with comments | « ios/chrome/browser/favicon/large_icon_cache.cc ('k') | ios/chrome/browser/infobars/infobar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698