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; |
} |