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

Unified Diff: chrome/browser/chromeos/arc/policy/arc_policy_bridge.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/chromeos/arc/policy/arc_policy_bridge.cc
diff --git a/chrome/browser/chromeos/arc/policy/arc_policy_bridge.cc b/chrome/browser/chromeos/arc/policy/arc_policy_bridge.cc
index 72c9383e425d4484bc1c7da628073842d587bf8e..e8fb5980d78a7873eefd8e37b0da2591acc227f1 100644
--- a/chrome/browser/chromeos/arc/policy/arc_policy_bridge.cc
+++ b/chrome/browser/chromeos/arc/policy/arc_policy_bridge.cc
@@ -53,7 +53,7 @@ void MapBoolToBool(const std::string& arc_policy_name,
const base::Value* const policy_value = policy_map.GetValue(policy_name);
if (!policy_value)
return;
- if (!policy_value->IsType(base::Value::TYPE_BOOLEAN)) {
+ if (!policy_value->IsType(base::Value::Type::BOOLEAN)) {
LOG(ERROR) << "Policy " << policy_name << " is not a boolean.";
return;
}
@@ -73,7 +73,7 @@ void MapIntToBool(const std::string& arc_policy_name,
const base::Value* const policy_value = policy_map.GetValue(policy_name);
if (!policy_value)
return;
- if (!policy_value->IsType(base::Value::TYPE_INTEGER)) {
+ if (!policy_value->IsType(base::Value::Type::INTEGER)) {
LOG(ERROR) << "Policy " << policy_name << " is not an integer.";
return;
}
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chromeos/extensions/echo_private_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698