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

Unified Diff: chrome/browser/profiles/incognito_mode_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: chrome/browser/profiles/incognito_mode_policy_handler.cc
diff --git a/chrome/browser/profiles/incognito_mode_policy_handler.cc b/chrome/browser/profiles/incognito_mode_policy_handler.cc
index 57afa0369fd727bd50a52f500ceb429845723889..224af9dcb9b2dcb8ce6b996a1f6fe3f00a82dc29 100644
--- a/chrome/browser/profiles/incognito_mode_policy_handler.cc
+++ b/chrome/browser/profiles/incognito_mode_policy_handler.cc
@@ -29,7 +29,7 @@ bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies,
int int_value = IncognitoModePrefs::ENABLED;
if (!availability->GetAsInteger(&int_value)) {
errors->AddError(key::kIncognitoModeAvailability, IDS_POLICY_TYPE_ERROR,
- base::Value::GetTypeName(base::Value::TYPE_INTEGER));
+ base::Value::GetTypeName(base::Value::Type::INTEGER));
return false;
}
IncognitoModePrefs::Availability availability_enum_value;
@@ -46,9 +46,9 @@ bool IncognitoModePolicyHandler::CheckPolicySettings(const PolicyMap& policies,
const base::Value* deprecated_enabled =
policies.GetValue(key::kIncognitoEnabled);
if (deprecated_enabled &&
- !deprecated_enabled->IsType(base::Value::TYPE_BOOLEAN)) {
+ !deprecated_enabled->IsType(base::Value::Type::BOOLEAN)) {
errors->AddError(key::kIncognitoEnabled, IDS_POLICY_TYPE_ERROR,
- base::Value::GetTypeName(base::Value::TYPE_BOOLEAN));
+ base::Value::GetTypeName(base::Value::Type::BOOLEAN));
return false;
}
return true;
« no previous file with comments | « chrome/browser/profiles/guest_mode_policy_handler.cc ('k') | chrome/browser/profiles/profile_statistics_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698