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

Unified Diff: components/policy/core/browser/browser_policy_connector.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.cc
diff --git a/components/policy/core/browser/browser_policy_connector.cc b/components/policy/core/browser/browser_policy_connector.cc
index 3b783f308143b3c82b64986ecc2742977342c2a3..a043fe1152d5a921d921dec7daf069681dc17cb0 100644
--- a/components/policy/core/browser/browser_policy_connector.cc
+++ b/components/policy/core/browser/browser_policy_connector.cc
@@ -5,8 +5,8 @@
#include "components/policy/core/browser/browser_policy_connector.h"
#include <stddef.h>
-
#include <algorithm>
+#include <utility>
#include <vector>
#include "base/command_line.h"
@@ -103,7 +103,7 @@ void BrowserPolicyConnector::InitInternal(
scoped_ptr<DeviceManagementService> device_management_service) {
DCHECK(!is_initialized());
- device_management_service_ = device_management_service.Pass();
+ device_management_service_ = std::move(device_management_service);
policy_statistics_collector_.reset(new policy::PolicyStatisticsCollector(
base::Bind(&GetChromePolicyDetails), GetChromeSchema(),
« no previous file with comments | « components/pdf_viewer/pdf_viewer.cc ('k') | components/policy/core/browser/browser_policy_connector_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698