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

Unified Diff: chrome/browser/policy/profile_policy_connector.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/policy/profile_policy_connector.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index e325634d533c19a459e647985d4f46b7d3471a1a..e0bccc969207fe242a40901861a91d2285d6b49e 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/policy/profile_policy_connector.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/values.h"
@@ -130,7 +132,7 @@ void ProfilePolicyConnector::Init(
}
void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) {
- policy_service_ = service.Pass();
+ policy_service_ = std::move(service);
}
void ProfilePolicyConnector::OverrideIsManagedForTesting(bool is_managed) {

Powered by Google App Engine
This is Rietveld 408576698