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

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

Issue 2816513002: Revert of Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Created 3 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 f74f43d6c1e9a3b92089a52947c41909e9a722bb..15461902a466a872dcc56860307f01c2e021b750 100644
--- a/components/policy/core/browser/url_blacklist_policy_handler.cc
+++ b/components/policy/core/browser/url_blacklist_policy_handler.cc
@@ -60,7 +60,7 @@
if (disabled_schemes) {
for (const auto& entry : *disabled_schemes) {
std::string entry_value;
- if (entry.GetAsString(&entry_value)) {
+ if (entry->GetAsString(&entry_value)) {
entry_value.append("://*");
merged_url_blacklist->AppendString(entry_value);
}
@@ -69,8 +69,8 @@
if (url_blacklist) {
for (const auto& entry : *url_blacklist) {
- if (entry.IsType(base::Value::Type::STRING))
- merged_url_blacklist->Append(entry.CreateDeepCopy());
+ if (entry->IsType(base::Value::Type::STRING))
+ merged_url_blacklist->Append(entry->CreateDeepCopy());
}
}
« no previous file with comments | « components/policy/core/browser/configuration_policy_handler.cc ('k') | components/policy/core/common/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698