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

Unified Diff: chrome/browser/ui/webui/settings/protocol_handlers_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/protocol_handlers_handler.cc
diff --git a/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc b/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
index 42610c6b6f60584b85bb4ec2770cc88ac4b6f612..70d02e81591188a2711a1164a7ac2c02df8bf540 100644
--- a/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
+++ b/chrome/browser/ui/webui/settings/protocol_handlers_handler.cc
@@ -128,10 +128,9 @@ void ProtocolHandlersHandler::UpdateHandlerList() {
std::unique_ptr<base::ListValue> ignored_handlers(new base::ListValue());
GetIgnoredHandlers(ignored_handlers.get());
CallJavascriptFunction("cr.webUIListenerCallback",
- base::StringValue("setProtocolHandlers"),
- handlers);
+ base::Value("setProtocolHandlers"), handlers);
CallJavascriptFunction("cr.webUIListenerCallback",
- base::StringValue("setIgnoredProtocolHandlers"),
+ base::Value("setIgnoredProtocolHandlers"),
*ignored_handlers);
}
@@ -150,7 +149,7 @@ void ProtocolHandlersHandler::HandleObserveProtocolHandlersEnabledState(
void ProtocolHandlersHandler::SendHandlersEnabledValue() {
CallJavascriptFunction("cr.webUIListenerCallback",
- base::StringValue("setHandlersEnabled"),
+ base::Value("setHandlersEnabled"),
base::Value(GetProtocolHandlerRegistry()->enabled()));
}
« no previous file with comments | « chrome/browser/ui/webui/settings/profile_info_handler.cc ('k') | chrome/browser/ui/webui/settings/reset_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698