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

Unified Diff: chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc

Issue 1557693002: Convert Pass()→std::move() in //chrome/browser/chromeos/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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: chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc
diff --git a/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc b/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc
index 82cc488871d1d7c1a6bab8353b4ef28775a9d948..eafe096e86707baeeeb53cfc3e8f2fb812561e99 100644
--- a/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc
+++ b/chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc
@@ -6,9 +6,9 @@
#include <stddef.h>
#include <stdint.h>
-
#include <map>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -171,8 +171,7 @@ void CloudExternalDataManagerBase::Backend::Connect(
scoped_ptr<ExternalPolicyDataFetcher> external_policy_data_fetcher) {
DCHECK(!updater_);
updater_.reset(new ExternalPolicyDataUpdater(
- task_runner_,
- external_policy_data_fetcher.Pass(),
+ task_runner_, std::move(external_policy_data_fetcher),
kMaxParallelFetches));
for (FetchCallbackMap::const_iterator it = pending_downloads_.begin();
it != pending_downloads_.end(); ++it) {
@@ -267,7 +266,7 @@ void CloudExternalDataManagerBase::Backend::Fetch(
data.get())) {
// If the external data referenced by |policy| exists in the cache and
// matches the expected hash, pass it to the callback.
- RunCallback(callback, data.Pass());
+ RunCallback(callback, std::move(data));
return;
}

Powered by Google App Engine
This is Rietveld 408576698