Index: chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc |
diff --git a/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc b/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc |
index 7d398e7949ba201c4e577a792fde18faf1110a8d..5c223c578dcf4799bff357c4ba60f1d45e3fa360 100644 |
--- a/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc |
+++ b/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc |
@@ -282,12 +282,12 @@ void MediaRouterWebUIMessageHandler::OnCreateRouteResponseReceived( |
std::unique_ptr<base::DictionaryValue> route_value(RouteToValue( |
*route, false, media_router_ui_->GetRouteProviderExtensionId(), |
incognito_, current_cast_mode)); |
- web_ui()->CallJavascriptFunctionUnsafe( |
- kOnCreateRouteResponseReceived, base::StringValue(sink_id), |
- *route_value, base::Value(route->for_display())); |
+ web_ui()->CallJavascriptFunctionUnsafe(kOnCreateRouteResponseReceived, |
+ base::Value(sink_id), *route_value, |
+ base::Value(route->for_display())); |
} else { |
web_ui()->CallJavascriptFunctionUnsafe( |
- kOnCreateRouteResponseReceived, base::StringValue(sink_id), |
+ kOnCreateRouteResponseReceived, base::Value(sink_id), |
*base::Value::CreateNullValue(), base::Value(false)); |
} |
} |
@@ -296,7 +296,7 @@ void MediaRouterWebUIMessageHandler::ReturnSearchResult( |
const std::string& sink_id) { |
DVLOG(2) << "ReturnSearchResult"; |
web_ui()->CallJavascriptFunctionUnsafe(kReceiveSearchResult, |
- base::StringValue(sink_id)); |
+ base::Value(sink_id)); |
} |
void MediaRouterWebUIMessageHandler::UpdateIssue(const Issue& issue) { |