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

Unified Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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/policy/configuration_policy_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
index a21f61a0690f329754677f97a6702651047f13d5..8a0e64b3275788a341a2e42522e8e76024f6b395 100644
--- a/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
@@ -103,20 +103,20 @@ std::unique_ptr<base::Value> GetAction(const base::DictionaryValue* dict,
if (!value || !value->GetAsString(&action))
return std::unique_ptr<base::Value>();
if (action == kActionSuspend) {
- return std::unique_ptr<base::Value>(new base::FundamentalValue(
- chromeos::PowerPolicyController::ACTION_SUSPEND));
+ return std::unique_ptr<base::Value>(
+ new base::Value(chromeos::PowerPolicyController::ACTION_SUSPEND));
}
if (action == kActionLogout) {
- return std::unique_ptr<base::Value>(new base::FundamentalValue(
- chromeos::PowerPolicyController::ACTION_STOP_SESSION));
+ return std::unique_ptr<base::Value>(
+ new base::Value(chromeos::PowerPolicyController::ACTION_STOP_SESSION));
}
if (action == kActionShutdown) {
- return std::unique_ptr<base::Value>(new base::FundamentalValue(
- chromeos::PowerPolicyController::ACTION_SHUT_DOWN));
+ return std::unique_ptr<base::Value>(
+ new base::Value(chromeos::PowerPolicyController::ACTION_SHUT_DOWN));
}
if (action == kActionDoNothing) {
- return std::unique_ptr<base::Value>(new base::FundamentalValue(
- chromeos::PowerPolicyController::ACTION_DO_NOTHING));
+ return std::unique_ptr<base::Value>(
+ new base::Value(chromeos::PowerPolicyController::ACTION_DO_NOTHING));
}
return std::unique_ptr<base::Value>();
}

Powered by Google App Engine
This is Rietveld 408576698