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

Unified Diff: ios/chrome/browser/autocomplete/in_memory_url_index_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
Index: ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
diff --git a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
index dcf734d85ab357f4debede0e7e2eea6eff1cd22a..4ee7417d5b14003a88f0adbce9a082410125b621 100644
--- a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
+++ b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
@@ -4,6 +4,8 @@
#include "ios/chrome/browser/autocomplete/in_memory_url_index_factory.h"
+#include <utility>
+
#include "base/memory/singleton.h"
#include "base/prefs/pref_service.h"
#include "components/keyed_service/core/service_access_type.h"
@@ -39,7 +41,7 @@ scoped_ptr<KeyedService> BuildInMemoryURLIndex(web::BrowserState* context) {
browser_state->GetPrefs()->GetString(prefs::kAcceptLanguages),
schemes_to_whilelist));
in_memory_url_index->Init();
- return in_memory_url_index.Pass();
+ return std::move(in_memory_url_index);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698