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

Unified Diff: components/policy/core/common/preg_parser_win.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/preg_parser_win.cc
diff --git a/components/policy/core/common/preg_parser_win.cc b/components/policy/core/common/preg_parser_win.cc
index 64f5948eebbaf929ecd0a1d8faf545aed7367f35..165f03c99a458ffb254de14302e26109d588ed43 100644
--- a/components/policy/core/common/preg_parser_win.cc
+++ b/components/policy/core/common/preg_parser_win.cc
@@ -11,6 +11,7 @@
#include <algorithm>
#include <functional>
#include <iterator>
+#include <utility>
#include <vector>
#include "base/files/file_path.h"
@@ -184,7 +185,7 @@ void HandleRecord(const base::string16& key_name,
base::CompareCase::SENSITIVE)) {
scoped_ptr<base::Value> value;
if (DecodePRegValue(type, data, &value))
- dict->SetValue(value_name, value.Pass());
+ dict->SetValue(value_name, std::move(value));
return;
}
« no previous file with comments | « components/policy/core/common/policy_loader_win_unittest.cc ('k') | components/policy/core/common/preg_parser_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698