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

Unified Diff: components/policy/core/browser/browser_policy_connector_base.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/browser/browser_policy_connector_base.cc
diff --git a/components/policy/core/browser/browser_policy_connector_base.cc b/components/policy/core/browser/browser_policy_connector_base.cc
index 4b0c6fba01a31afa55f21aecff5036380156c0a6..a36a78a5ae3aae06f78f94df18705b0e8f25c501 100644
--- a/components/policy/core/browser/browser_policy_connector_base.cc
+++ b/components/policy/core/browser/browser_policy_connector_base.cc
@@ -5,7 +5,7 @@
#include "components/policy/core/browser/browser_policy_connector_base.h"
#include <stddef.h>
-
+#include <utility>
#include <vector>
#include "base/logging.h"
@@ -129,7 +129,7 @@ void BrowserPolicyConnectorBase::SetPlatformPolicyProvider(
scoped_ptr<ConfigurationPolicyProvider> provider) {
CHECK(!platform_policy_provider_);
platform_policy_provider_ = provider.get();
- AddPolicyProvider(provider.Pass());
+ AddPolicyProvider(std::move(provider));
}
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698