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

Unified Diff: components/policy/core/browser/url_blacklist_policy_handler.cc

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/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 51270ba3f634a725db83fec405e1d0ea545a33c2..80deab632dd9c706b33295faed8737f07e42357a 100644
--- a/components/policy/core/browser/url_blacklist_policy_handler.cc
+++ b/components/policy/core/browser/url_blacklist_policy_handler.cc
@@ -4,9 +4,9 @@
#include "components/policy/core/browser/url_blacklist_policy_handler.h"
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_map.h"
@@ -55,7 +55,7 @@ void URLBlacklistPolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
if (disabled_schemes_policy)
disabled_schemes_policy->GetAsList(&disabled_schemes);
- scoped_ptr<base::ListValue> merged_url_blacklist(new base::ListValue());
+ std::unique_ptr<base::ListValue> merged_url_blacklist(new base::ListValue());
// We start with the DisabledSchemes because we have size limit when
// handling URLBlacklists.

Powered by Google App Engine
This is Rietveld 408576698