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

Unified Diff: chrome/browser/ssl/chrome_ssl_host_state_delegate.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 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: chrome/browser/ssl/chrome_ssl_host_state_delegate.cc
diff --git a/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc b/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc
index 43787d98b6b1a684520eb2858399e8ca771fdf51..09688e088b6f592c73fe1738d2e814933ba7606a 100644
--- a/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc
+++ b/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc
@@ -301,7 +301,7 @@ void ChromeSSLHostStateDelegate::AllowCert(const std::string& host,
std::unique_ptr<base::Value> value(map->GetWebsiteSetting(
url, url, CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS, std::string(), NULL));
- if (!value.get() || !value->IsType(base::Value::TYPE_DICTIONARY))
+ if (!value.get() || !value->IsType(base::Value::Type::DICTIONARY))
value.reset(new base::DictionaryValue());
base::DictionaryValue* dict;
@@ -369,7 +369,7 @@ ChromeSSLHostStateDelegate::QueryPolicy(const std::string& host,
if (allow_localhost && net::IsLocalhost(url.host()))
return ALLOWED;
- if (!value.get() || !value->IsType(base::Value::TYPE_DICTIONARY))
+ if (!value.get() || !value->IsType(base::Value::Type::DICTIONARY))
return DENIED;
base::DictionaryValue* dict; // Owned by value
@@ -445,7 +445,7 @@ bool ChromeSSLHostStateDelegate::HasAllowException(
std::unique_ptr<base::Value> value(map->GetWebsiteSetting(
url, url, CONTENT_SETTINGS_TYPE_SSL_CERT_DECISIONS, std::string(), NULL));
- if (!value.get() || !value->IsType(base::Value::TYPE_DICTIONARY))
+ if (!value.get() || !value->IsType(base::Value::Type::DICTIONARY))
return false;
base::DictionaryValue* dict; // Owned by value
« no previous file with comments | « chrome/browser/ssl/chrome_expect_ct_reporter_unittest.cc ('k') | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698