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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 months 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/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc b/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
index b1f00022bcadf68474dc3435576b4511aeb766a5..c16ef08e51090a0f8e11d5e66b95941d5ccfc0b4 100644
--- a/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler.cc
@@ -87,14 +87,13 @@ void EasyUnlockSettingsHandler::OnJavascriptDisallowed() {
void EasyUnlockSettingsHandler::OnTurnOffOperationStatusChanged() {
CallJavascriptFunction("cr.webUIListenerCallback",
- base::StringValue("easy-unlock-turn-off-flow-status"),
- base::StringValue(GetTurnOffFlowStatus()));
+ base::Value("easy-unlock-turn-off-flow-status"),
+ base::Value(GetTurnOffFlowStatus()));
}
void EasyUnlockSettingsHandler::SendEnabledStatus() {
CallJavascriptFunction(
- "cr.webUIListenerCallback",
- base::StringValue("easy-unlock-enabled-status"),
+ "cr.webUIListenerCallback", base::Value("easy-unlock-enabled-status"),
base::Value(EasyUnlockService::Get(profile_)->IsEnabled()));
}
@@ -145,8 +144,7 @@ void EasyUnlockSettingsHandler::HandleGetTurnOffFlowStatus(
CHECK_EQ(1U, args->GetSize());
const base::Value* callback_id;
CHECK(args->Get(0, &callback_id));
- ResolveJavascriptCallback(*callback_id,
- base::StringValue(GetTurnOffFlowStatus()));
+ ResolveJavascriptCallback(*callback_id, base::Value(GetTurnOffFlowStatus()));
}
void EasyUnlockSettingsHandler::HandleStartTurnOffFlow(

Powered by Google App Engine
This is Rietveld 408576698