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

Unified Diff: chrome/browser/policy/network_prediction_policy_handler.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
« no previous file with comments | « chrome/browser/policy/javascript_policy_handler.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/network_prediction_policy_handler.cc
diff --git a/chrome/browser/policy/network_prediction_policy_handler.cc b/chrome/browser/policy/network_prediction_policy_handler.cc
index 0276e2e785019a8ec3b07c820f4f72a95edd9708..793dbb6dffecfbf8c8cfe96d00a158a1cdd9cf70 100644
--- a/chrome/browser/policy/network_prediction_policy_handler.cc
+++ b/chrome/browser/policy/network_prediction_policy_handler.cc
@@ -32,15 +32,15 @@ bool NetworkPredictionPolicyHandler::CheckPolicySettings(
policies.GetValue(key::kNetworkPredictionOptions);
if (network_prediction_enabled &&
- !network_prediction_enabled->IsType(base::Value::TYPE_BOOLEAN)) {
+ !network_prediction_enabled->IsType(base::Value::Type::BOOLEAN)) {
errors->AddError(key::kDnsPrefetchingEnabled, IDS_POLICY_TYPE_ERROR,
- base::Value::GetTypeName(base::Value::TYPE_BOOLEAN));
+ base::Value::GetTypeName(base::Value::Type::BOOLEAN));
}
if (network_prediction_options &&
- !network_prediction_options->IsType(base::Value::TYPE_INTEGER)) {
+ !network_prediction_options->IsType(base::Value::Type::INTEGER)) {
errors->AddError(key::kNetworkPredictionOptions, IDS_POLICY_TYPE_ERROR,
- base::Value::GetTypeName(base::Value::TYPE_INTEGER));
+ base::Value::GetTypeName(base::Value::Type::INTEGER));
}
if (network_prediction_enabled && network_prediction_options) {
« no previous file with comments | « chrome/browser/policy/javascript_policy_handler.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698