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

Unified Diff: components/policy/core/common/policy_loader_win_unittest.cc

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
Index: components/policy/core/common/policy_loader_win_unittest.cc
diff --git a/components/policy/core/common/policy_loader_win_unittest.cc b/components/policy/core/common/policy_loader_win_unittest.cc
index b2385d3e6a6b5e6b53ace6a5e20ee8e576f80126..92d03071a75809d6ad02686a79ce32d9c2d798fa 100644
--- a/components/policy/core/common/policy_loader_win_unittest.cc
+++ b/components/policy/core/common/policy_loader_win_unittest.cc
@@ -13,6 +13,7 @@
#include <cstring>
#include <functional>
#include <iterator>
+#include <utility>
#include <vector>
#include "base/base_paths.h"
@@ -352,7 +353,7 @@ ConfigurationPolicyProvider* RegistryTestHarness::CreateProvider(
base::win::SetDomainStateForTesting(true);
scoped_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderWin(task_runner, kTestPolicyKey, this));
- return new AsyncPolicyProvider(registry, loader.Pass());
+ return new AsyncPolicyProvider(registry, std::move(loader));
}
void RegistryTestHarness::InstallEmptyPolicy() {}
@@ -485,7 +486,7 @@ ConfigurationPolicyProvider* PRegTestHarness::CreateProvider(
scoped_refptr<base::SequencedTaskRunner> task_runner) {
scoped_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderWin(task_runner, kTestPolicyKey, this));
- return new AsyncPolicyProvider(registry, loader.Pass());
+ return new AsyncPolicyProvider(registry, std::move(loader));
}
void PRegTestHarness::InstallEmptyPolicy() {}
« no previous file with comments | « components/policy/core/common/policy_loader_win.cc ('k') | components/policy/core/common/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698