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

Issue 1363593003: [Media Router] Set timeout for route creation. (Closed)

Created:
5 years, 3 months ago by apacible
Modified:
5 years, 2 months ago
Reviewers:
imcheng
CC:
chromium-reviews, media-router+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Set timeout for route creation. This sets a timeout in case of a route creation request that doesn't get a response from the provider. We determined the timeout time, 20s, based on a couple of factors. The default cast timeout is 10s, but there is a way for third party apps to override the timeout, usually using 12s instead. This change also makes the WebUI handle a timeout on route creation. This change also removes is_launching from the MediaSink. We determine which Sink is currently being launched by tracking the ID of the Sink that was clicked in the WebUI. BUG=490372 Committed: https://crrev.com/05ed82a4c0bd71cd6ea3f39d922eb4a45bb39075 Cr-Commit-Position: refs/heads/master@{#352615}

Patch Set 1 : #

Total comments: 11

Patch Set 2 : Changes per imcheng@'s comments. #

Patch Set 3 : Update integration tests. #

Patch Set 4 : Rebase. #

Patch Set 5 : Show host URL in issue. #

Total comments: 2

Patch Set 6 : Changes per imcheng@'s comments and offline conversation. Rebase (forgot to upload separately, sorry!). #

Total comments: 16

Patch Set 7 : Changes per imcheng@'s comments. #

Patch Set 8 : Changes per offline conversation. #

Total comments: 4

Patch Set 9 : Changes per imcheng@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -137 lines) Patch
M chrome/app/media_router_strings.grdp View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.mojom View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters_unittest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/media/router/media_sink.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/media/router/media_sink.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -9 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 2 3 4 5 6 7 8 8 chunks +36 lines, -32 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_data.js View 1 2 3 4 5 6 7 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_ui_interface.js View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_cast_mode.cc View 1 2 3 4 1 chunk +1 line, -19 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_cast_mode_unittest.cc View 1 2 3 4 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.h View 1 2 3 4 5 6 5 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 5 6 9 chunks +63 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/test/media_router/media_router_integration_browsertest.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/media_router/media_router_integration_browsertest.cc View 1 2 3 4 5 3 chunks +20 lines, -0 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 27 (9 generated)
imcheng
https://codereview.chromium.org/1363593003/diff/40001/chrome/app/media_router_strings.grdp File chrome/app/media_router_strings.grdp (right): https://codereview.chromium.org/1363593003/diff/40001/chrome/app/media_router_strings.grdp#newcode54 chrome/app/media_router_strings.grdp:54: <message name="IDS_MEDIA_ROUTER_ISSUE_CREATE_ROUTE_TIMEOUT" desc="Title of an issue to show when ...
5 years, 3 months ago (2015-09-22 21:45:12 UTC) #4
apacible
https://codereview.chromium.org/1363593003/diff/40001/chrome/app/media_router_strings.grdp File chrome/app/media_router_strings.grdp (right): https://codereview.chromium.org/1363593003/diff/40001/chrome/app/media_router_strings.grdp#newcode54 chrome/app/media_router_strings.grdp:54: <message name="IDS_MEDIA_ROUTER_ISSUE_CREATE_ROUTE_TIMEOUT" desc="Title of an issue to show when ...
5 years, 3 months ago (2015-09-22 22:37:19 UTC) #5
apacible
5 years, 3 months ago (2015-09-23 21:08:23 UTC) #7
imcheng
looks like you will need to rebase? There was a timer patch that landed recently.
5 years, 2 months ago (2015-09-25 17:43:18 UTC) #8
apacible
On 2015/09/25 17:43:18, imcheng1 wrote: > looks like you will need to rebase? There was ...
5 years, 2 months ago (2015-09-25 18:36:03 UTC) #9
apacible
5 years, 2 months ago (2015-09-26 02:17:48 UTC) #10
apacible
Friendly ping!
5 years, 2 months ago (2015-09-29 13:53:28 UTC) #11
imcheng
https://codereview.chromium.org/1363593003/diff/40001/chrome/browser/ui/webui/media_router/media_router_ui.cc File chrome/browser/ui/webui/media_router/media_router_ui.cc (right): https://codereview.chromium.org/1363593003/diff/40001/chrome/browser/ui/webui/media_router/media_router_ui.cc#newcode385 chrome/browser/ui/webui/media_router/media_router_ui.cc:385: void MediaRouterUI::RouteCreationTimeout() { On 2015/09/22 22:37:19, apacible wrote: > ...
5 years, 2 months ago (2015-09-29 19:08:53 UTC) #12
apacible
https://codereview.chromium.org/1363593003/diff/140001/chrome/browser/ui/webui/media_router/media_router_ui.cc File chrome/browser/ui/webui/media_router/media_router_ui.cc (right): https://codereview.chromium.org/1363593003/diff/140001/chrome/browser/ui/webui/media_router/media_router_ui.cc#newcode412 chrome/browser/ui/webui/media_router/media_router_ui.cc:412: AddIssue(issue); On 2015/09/29 19:08:53, imcheng1 wrote: > We can ...
5 years, 2 months ago (2015-09-30 18:05:46 UTC) #13
imcheng
https://codereview.chromium.org/1363593003/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/1363593003/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode411 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:411: computeSinkIsLaunching_: function(isLaunching, isSinkLaunching) { why can't we check only ...
5 years, 2 months ago (2015-10-02 21:57:30 UTC) #14
apacible
https://codereview.chromium.org/1363593003/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/1363593003/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode411 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:411: computeSinkIsLaunching_: function(isLaunching, isSinkLaunching) { On 2015/10/02 21:57:30, imcheng1 wrote: ...
5 years, 2 months ago (2015-10-02 23:45:17 UTC) #16
apacible
5 years, 2 months ago (2015-10-05 19:03:25 UTC) #17
apacible
Updated per offline conversation: - Removed is_launching from the MediaSink. - Removed isLaunching from media-router-container. ...
5 years, 2 months ago (2015-10-05 19:04:29 UTC) #18
imcheng
lgtm https://codereview.chromium.org/1363593003/diff/220001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html (right): https://codereview.chromium.org/1363593003/diff/220001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html#newcode28 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html:28: disabled$="[[isLaunching]]" id="arrow-drop-icon" does this need to be updated? ...
5 years, 2 months ago (2015-10-06 01:28:29 UTC) #19
apacible
https://codereview.chromium.org/1363593003/diff/220001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html (right): https://codereview.chromium.org/1363593003/diff/220001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html#newcode28 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html:28: disabled$="[[isLaunching]]" id="arrow-drop-icon" On 2015/10/06 01:28:29, imcheng1 wrote: > does ...
5 years, 2 months ago (2015-10-06 01:51:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1363593003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1363593003/260001
5 years, 2 months ago (2015-10-06 16:17:37 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:260001)
5 years, 2 months ago (2015-10-06 16:25:40 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 16:26:25 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/05ed82a4c0bd71cd6ea3f39d922eb4a45bb39075
Cr-Commit-Position: refs/heads/master@{#352615}

Powered by Google App Engine
This is Rietveld 408576698