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

Unified Diff: chrome/browser/policy/profile_policy_connector_factory.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_factory.cc
diff --git a/chrome/browser/policy/profile_policy_connector_factory.cc b/chrome/browser/policy/profile_policy_connector_factory.cc
index 3d795921f41ece04d891cc26a531307cad372895..11a591e783963692731d2b3c58d8603cee78f6e8 100644
--- a/chrome/browser/policy/profile_policy_connector_factory.cc
+++ b/chrome/browser/policy/profile_policy_connector_factory.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/policy/profile_policy_connector_factory.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/memory/singleton.h"
#include "build/build_config.h"
@@ -137,14 +139,14 @@ ProfilePolicyConnectorFactory::CreateForBrowserContextInternal(
providers.push_back(test_providers_.front());
test_providers_.pop_front();
scoped_ptr<PolicyService> service(new PolicyServiceImpl(providers));
- connector->InitForTesting(service.Pass());
+ connector->InitForTesting(std::move(service));
}
#else
connector->Init(nullptr, nullptr);
#endif
connectors_[context] = connector.get();
- return connector.Pass();
+ return connector;
}
void ProfilePolicyConnectorFactory::BrowserContextShutdown(

Powered by Google App Engine
This is Rietveld 408576698