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

Unified Diff: chrome/browser/policy/network_prediction_policy_handler.cc

Issue 2149253003: Switch various ValueTypeToString()s to base::Value::GetTypeName(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@value
Patch Set: rebase Created 4 years, 5 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: 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 c68c9f31ccaf51ecf8728f4f9d0f679059686fd8..1a7466ed640053435346efa9c039777cda8ea63e 100644
--- a/chrome/browser/policy/network_prediction_policy_handler.cc
+++ b/chrome/browser/policy/network_prediction_policy_handler.cc
@@ -33,16 +33,14 @@ bool NetworkPredictionPolicyHandler::CheckPolicySettings(
if (network_prediction_enabled &&
!network_prediction_enabled->IsType(base::Value::TYPE_BOOLEAN)) {
- errors->AddError(key::kDnsPrefetchingEnabled,
- IDS_POLICY_TYPE_ERROR,
- ValueTypeToString(base::Value::TYPE_BOOLEAN));
+ errors->AddError(key::kDnsPrefetchingEnabled, IDS_POLICY_TYPE_ERROR,
+ base::Value::GetTypeName(base::Value::TYPE_BOOLEAN));
}
if (network_prediction_options &&
!network_prediction_options->IsType(base::Value::TYPE_INTEGER)) {
- errors->AddError(key::kNetworkPredictionOptions,
- IDS_POLICY_TYPE_ERROR,
- ValueTypeToString(base::Value::TYPE_INTEGER));
+ errors->AddError(key::kNetworkPredictionOptions, IDS_POLICY_TYPE_ERROR,
+ 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/profiles/incognito_mode_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698