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

Unified Diff: chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 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 5c223c578dcf4799bff357c4ba60f1d45e3fa360..f4ac35ecee5bad3a4bc300535d1001db306df141 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
@@ -286,9 +286,9 @@ void MediaRouterWebUIMessageHandler::OnCreateRouteResponseReceived(
base::Value(sink_id), *route_value,
base::Value(route->for_display()));
} else {
- web_ui()->CallJavascriptFunctionUnsafe(
- kOnCreateRouteResponseReceived, base::Value(sink_id),
- *base::Value::CreateNullValue(), base::Value(false));
+ web_ui()->CallJavascriptFunctionUnsafe(kOnCreateRouteResponseReceived,
+ base::Value(sink_id), base::Value(),
+ base::Value(false));
}
}
@@ -306,8 +306,7 @@ void MediaRouterWebUIMessageHandler::UpdateIssue(const Issue& issue) {
void MediaRouterWebUIMessageHandler::ClearIssue() {
DVLOG(2) << "ClearIssue";
- web_ui()->CallJavascriptFunctionUnsafe(kSetIssue,
- *base::Value::CreateNullValue());
+ web_ui()->CallJavascriptFunctionUnsafe(kSetIssue, base::Value());
}
void MediaRouterWebUIMessageHandler::UpdateMaxDialogHeight(int height) {

Powered by Google App Engine
This is Rietveld 408576698