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

Unified Diff: components/policy/core/browser/url_blacklist_policy_handler.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/url_blacklist_policy_handler.cc
diff --git a/components/policy/core/browser/url_blacklist_policy_handler.cc b/components/policy/core/browser/url_blacklist_policy_handler.cc
index e905b77e34052262ed7f32254b18ab31a8aeb9b6..6bfa20e8bc4e82f4c33e9b567d0b0e08b05ab02f 100644
--- a/components/policy/core/browser/url_blacklist_policy_handler.cc
+++ b/components/policy/core/browser/url_blacklist_policy_handler.cc
@@ -4,6 +4,8 @@
#include "components/policy/core/browser/url_blacklist_policy_handler.h"
+#include <utility>
+
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_value_map.h"
#include "base/values.h"
@@ -77,7 +79,8 @@ void URLBlacklistPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
}
if (disabled_schemes || url_blacklist) {
- prefs->SetValue(policy_prefs::kUrlBlacklist, merged_url_blacklist.Pass());
+ prefs->SetValue(policy_prefs::kUrlBlacklist,
+ std::move(merged_url_blacklist));
}
}
« no previous file with comments | « components/policy/core/browser/url_blacklist_manager_unittest.cc ('k') | components/policy/core/common/async_policy_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698