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

Unified Diff: chrome/browser/chromeos/policy/login_profile_policy_provider.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/login_profile_policy_provider.cc
diff --git a/chrome/browser/chromeos/policy/login_profile_policy_provider.cc b/chrome/browser/chromeos/policy/login_profile_policy_provider.cc
index 164583fd5fdfcae760d74180173fe51cf0347aa7..373a350fde1253adbc9ae7a4b9281db040b5d153 100644
--- a/chrome/browser/chromeos/policy/login_profile_policy_provider.cc
+++ b/chrome/browser/chromeos/policy/login_profile_policy_provider.cc
@@ -34,20 +34,20 @@ const char kActionDoNothing[] = "DoNothing";
std::unique_ptr<base::Value> GetAction(const std::string& action) {
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