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

Unified Diff: chrome/browser/search_engines/search_provider_install_data.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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/search_engines/search_provider_install_data.cc
diff --git a/chrome/browser/search_engines/search_provider_install_data.cc b/chrome/browser/search_engines/search_provider_install_data.cc
index b34de58b640954347e2d16bc91a9a0503d1551a9..dcf0d7c173566495b26fd9ce34fb888ffd316254 100644
--- a/chrome/browser/search_engines/search_provider_install_data.cc
+++ b/chrome/browser/search_engines/search_provider_install_data.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <functional>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -47,11 +48,10 @@ void LoadDataOnUIThread(TemplateURLService* template_url_service,
if (*it == original_default_provider)
default_provider_copy = template_url_copies.back();
}
- BrowserThread::PostTask(BrowserThread::IO,
- FROM_HERE,
- base::Bind(callback,
- base::Passed(template_url_copies.Pass()),
- base::Unretained(default_provider_copy)));
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(callback, base::Passed(std::move(template_url_copies)),
+ base::Unretained(default_provider_copy)));
}
// Implementation of SearchTermsData that may be used on the I/O thread.
@@ -262,7 +262,7 @@ void SearchProviderInstallData::OnTemplateURLsLoaded(
TemplateURL* default_provider) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- template_urls_ = template_urls.Pass();
+ template_urls_ = std::move(template_urls);
IOThreadSearchTermsData search_terms_data(google_base_url_);
provider_map_.reset(new SearchHostToURLsMap());

Powered by Google App Engine
This is Rietveld 408576698