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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_webui_message_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/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) {

Powered by Google App Engine
This is Rietveld 408576698