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

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

Issue 1173753003: [Media Router] Implement JoinRoute + update CreateRoute API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix again x2 Created 5 years, 6 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
« no previous file with comments | « chrome/browser/ui/webui/media_router/media_router_ui.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a752f74739cec41c24c0a46815bee6325ab0c6b2..0381fe7deccf842f7475c45ebd6c2332b29588be 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
@@ -175,10 +175,7 @@ void MediaRouterWebUIMessageHandler::OnGetInitialSettings(
initial_settings.Set("routes", routes.release());
scoped_ptr<base::ListValue> cast_modes(CastModesToValue(
- media_router_ui->cast_modes(),
- // TODO(imcheng): Use media_router_ui->source_host() once DEFAULT mode
- // is upstreamed.
- std::string()));
+ media_router_ui->cast_modes(), media_router_ui->GetFrameURLHost()));
initial_settings.Set("castModes", cast_modes.release());
web_ui()->CallJavascriptFunction(kSetInitialSettings, initial_settings);
« no previous file with comments | « chrome/browser/ui/webui/media_router/media_router_ui.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698