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

Unified Diff: components/policy/core/common/async_policy_loader.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/policy/core/common/async_policy_loader.cc
diff --git a/components/policy/core/common/async_policy_loader.cc b/components/policy/core/common/async_policy_loader.cc
index e704673e408f3bb5865bc4900933e9d33b98a4b8..1c974fa502932fe00b1a24f088ddcd4b3ef2d300 100644
--- a/components/policy/core/common/async_policy_loader.cc
+++ b/components/policy/core/common/async_policy_loader.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/common/async_policy_loader.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/sequenced_task_runner.h"
@@ -60,7 +62,7 @@ void AsyncPolicyLoader::Reload(bool force) {
// Filter out mismatching policies.
schema_map_->FilterBundle(bundle.get());
- update_callback_.Run(bundle.Pass());
+ update_callback_.Run(std::move(bundle));
ScheduleNextReload(TimeDelta::FromSeconds(kReloadIntervalSeconds));
}
@@ -74,7 +76,7 @@ scoped_ptr<PolicyBundle> AsyncPolicyLoader::InitialLoad(
scoped_ptr<PolicyBundle> bundle(Load());
// Filter out mismatching policies.
schema_map_->FilterBundle(bundle.get());
- return bundle.Pass();
+ return bundle;
}
void AsyncPolicyLoader::Init(const UpdateCallback& update_callback) {
« no previous file with comments | « components/policy/core/browser/url_blacklist_policy_handler.cc ('k') | components/policy/core/common/async_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698