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

Unified Diff: components/policy/core/browser/configuration_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
Index: components/policy/core/browser/configuration_policy_handler.cc
diff --git a/components/policy/core/browser/configuration_policy_handler.cc b/components/policy/core/browser/configuration_policy_handler.cc
index 74a66897edf3267be0f360aa62ff39fee7ae8d64..10edb534e1909c82414ee593f3ab3b2fbe97bd7a 100644
--- a/components/policy/core/browser/configuration_policy_handler.cc
+++ b/components/policy/core/browser/configuration_policy_handler.cc
@@ -85,7 +85,7 @@ IntRangePolicyHandlerBase::IntRangePolicyHandlerBase(
int min,
int max,
bool clamp)
- : TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_INTEGER),
+ : TypeCheckingPolicyHandler(policy_name, base::Value::Type::INTEGER),
min_(min),
max_(max),
clamp_(clamp) {
@@ -145,7 +145,7 @@ StringMappingListPolicyHandler::StringMappingListPolicyHandler(
const char* policy_name,
const char* pref_path,
const GenerateMapCallback& callback)
- : TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST),
+ : TypeCheckingPolicyHandler(policy_name, base::Value::Type::LIST),
pref_path_(pref_path),
map_getter_(callback) {}
@@ -188,7 +188,7 @@ bool StringMappingListPolicyHandler::Convert(const base::Value* input,
if (errors) {
errors->AddError(policy_name(), entry - list_value->begin(),
IDS_POLICY_TYPE_ERROR,
- base::Value::GetTypeName(base::Value::TYPE_STRING));
+ base::Value::GetTypeName(base::Value::Type::STRING));
}
continue;
}

Powered by Google App Engine
This is Rietveld 408576698