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

Unified Diff: components/policy/core/browser/browser_policy_connector_ios.mm

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months 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
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/policy/core/common/policy_loader_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/browser/browser_policy_connector_ios.mm
diff --git a/components/policy/core/browser/browser_policy_connector_ios.mm b/components/policy/core/browser/browser_policy_connector_ios.mm
index e20728dec407dc9059051777c2c941a371eae34e..593d38abf6866d62bc097a5b39f50d8cc5edd7f1 100644
--- a/components/policy/core/browser/browser_policy_connector_ios.mm
+++ b/components/policy/core/browser/browser_policy_connector_ios.mm
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <utility>
+
#include "base/macros.h"
#include "base/sequenced_task_runner.h"
#include "base/strings/stringprintf.h"
@@ -68,8 +70,8 @@ BrowserPolicyConnectorIOS::BrowserPolicyConnectorIOS(
scoped_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderIOS(background_task_runner));
scoped_ptr<ConfigurationPolicyProvider> provider(
- new AsyncPolicyProvider(GetSchemaRegistry(), loader.Pass()));
- SetPlatformPolicyProvider(provider.Pass());
+ new AsyncPolicyProvider(GetSchemaRegistry(), std::move(loader)));
+ SetPlatformPolicyProvider(std::move(provider));
}
BrowserPolicyConnectorIOS::~BrowserPolicyConnectorIOS() {}
@@ -80,14 +82,14 @@ void BrowserPolicyConnectorIOS::Init(
scoped_ptr<DeviceManagementService::Configuration> configuration(
new DeviceManagementServiceConfiguration(user_agent_));
scoped_ptr<DeviceManagementService> device_management_service(
- new DeviceManagementService(configuration.Pass()));
+ new DeviceManagementService(std::move(configuration)));
// Delay initialization of the cloud policy requests by 5 seconds.
const int64_t kServiceInitializationStartupDelay = 5000;
device_management_service->ScheduleInitialization(
kServiceInitializationStartupDelay);
- InitInternal(local_state, device_management_service.Pass());
+ InitInternal(local_state, std::move(device_management_service));
}
} // namespace policy
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/policy/core/common/policy_loader_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698