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

Issue 2145983003: [Media Router] Adds return value to mojo MediaRouteProvider::TerminateRoute. (Closed)

Created:
4 years, 5 months ago by mark a. foltz
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, media-router+watch_chromium.org, miu+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+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] Adds return value to mojo MediaRouteProvider::TerminateRoute. This API change allows the MRPM to pass a Promise to the MR that represents the outcome of a call to terminateRoute(). The result is logged in a new histogram, MediaRouter.Provider.TerminateRoute.Result. The change is designed to be backwards compatible with MRPM versions that do not return a Promise. The MRPM side change will be done next. BUG=627967 Committed: https://crrev.com/bfbff851505f6314f4b0f7eaf3b22e16348f3528 Cr-Commit-Position: refs/heads/master@{#406897}

Patch Set 1 #

Patch Set 2 : Initial patch #

Total comments: 6

Patch Set 3 : Update enums. #

Patch Set 4 : Respond to apacible@ comments #

Total comments: 8

Patch Set 5 : Fix bindings #

Total comments: 2

Patch Set 6 : Update type converters #

Patch Set 7 : Fix line too long #

Total comments: 1

Patch Set 8 : Respond to isherman@ comments. #

Patch Set 9 : Fix typo in media_router_bindings.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -26 lines) Patch
M chrome/browser/media/router/mojo/media_router.mojom View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +48 lines, -4 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_metrics.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_metrics.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_type_converters.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/media/router/route_request_result.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -6 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (16 generated)
mark a. foltz
4 years, 5 months ago (2016-07-13 23:56:28 UTC) #3
apacible
lgtm https://codereview.chromium.org/2145983003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_metrics.cc File chrome/browser/media/router/mojo/media_router_mojo_metrics.cc (right): https://codereview.chromium.org/2145983003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_metrics.cc#newcode61 chrome/browser/media/router/mojo/media_router_mojo_metrics.cc:61: nit: remove extra line. https://codereview.chromium.org/2145983003/diff/20001/extensions/renderer/resources/media_router_bindings.js File extensions/renderer/resources/media_router_bindings.js (right): ...
4 years, 5 months ago (2016-07-14 16:46:36 UTC) #5
mark a. foltz
Responded to apacible@ comments. imcheng@, PTAL I went ahead and synchronized the result codes between ...
4 years, 5 months ago (2016-07-15 20:03:36 UTC) #6
imcheng
https://codereview.chromium.org/2145983003/diff/60001/chrome/browser/media/router/mojo/media_router_type_converters.cc File chrome/browser/media/router/mojo/media_router_type_converters.cc (right): https://codereview.chromium.org/2145983003/diff/60001/chrome/browser/media/router/mojo/media_router_type_converters.cc#newcode189 chrome/browser/media/router/mojo/media_router_type_converters.cc:189: return media_router::RouteRequestResult::SINK_NOT_FOUND; Do you also need to add INVALID_ORIGIN, ...
4 years, 5 months ago (2016-07-15 20:18:46 UTC) #7
mark a. foltz
https://codereview.chromium.org/2145983003/diff/60001/extensions/renderer/resources/media_router_bindings.js File extensions/renderer/resources/media_router_bindings.js (right): https://codereview.chromium.org/2145983003/diff/60001/extensions/renderer/resources/media_router_bindings.js#newcode675 extensions/renderer/resources/media_router_bindings.js:675: * @param {!string} routeId On 2016/07/15 at 20:18:45, imcheng ...
4 years, 5 months ago (2016-07-15 20:36:49 UTC) #8
imcheng
lgtm after the comment in chrome/browser/media/router/mojo/media_router_type_converters.cc and nit in bindings.js are addressed. https://codereview.chromium.org/2145983003/diff/80001/extensions/renderer/resources/media_router_bindings.js File extensions/renderer/resources/media_router_bindings.js ...
4 years, 5 months ago (2016-07-15 20:40:45 UTC) #9
mark a. foltz
https://codereview.chromium.org/2145983003/diff/60001/chrome/browser/media/router/mojo/media_router_type_converters.cc File chrome/browser/media/router/mojo/media_router_type_converters.cc (right): https://codereview.chromium.org/2145983003/diff/60001/chrome/browser/media/router/mojo/media_router_type_converters.cc#newcode189 chrome/browser/media/router/mojo/media_router_type_converters.cc:189: return media_router::RouteRequestResult::SINK_NOT_FOUND; On 2016/07/15 at 20:18:45, imcheng wrote: > ...
4 years, 5 months ago (2016-07-15 20:48:41 UTC) #10
mark a. foltz
https://codereview.chromium.org/2145983003/diff/80001/extensions/renderer/resources/media_router_bindings.js File extensions/renderer/resources/media_router_bindings.js (right): https://codereview.chromium.org/2145983003/diff/80001/extensions/renderer/resources/media_router_bindings.js#newcode677 extensions/renderer/resources/media_router_bindings.js:677: * the result of the terminate operation, or rejecting ...
4 years, 5 months ago (2016-07-15 20:49:05 UTC) #11
mark a. foltz
Mike, Ilya, PTAL. +isherman for tools/metrics/histograms +mkwst for .mojom OWNERS
4 years, 5 months ago (2016-07-18 17:04:31 UTC) #17
Ilya Sherman
LGTM % a nit: https://codereview.chromium.org/2145983003/diff/120001/chrome/browser/media/router/route_request_result.h File chrome/browser/media/router/route_request_result.h (right): https://codereview.chromium.org/2145983003/diff/120001/chrome/browser/media/router/route_request_result.h#newcode35 chrome/browser/media/router/route_request_result.h:35: // - MediaRouteProviderResult enum in ...
4 years, 5 months ago (2016-07-18 22:56:57 UTC) #18
mark a. foltz
On 2016/07/18 at 22:56:57, isherman wrote: > LGTM % a nit: > > https://codereview.chromium.org/2145983003/diff/120001/chrome/browser/media/router/route_request_result.h > ...
4 years, 5 months ago (2016-07-19 23:53:27 UTC) #19
Mike West
Adding the result code to the mojom LGTM.
4 years, 5 months ago (2016-07-20 07:27:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2145983003/140001
4 years, 5 months ago (2016-07-20 16:31:08 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/221514)
4 years, 5 months ago (2016-07-20 16:42:56 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2145983003/160001
4 years, 5 months ago (2016-07-21 00:47:56 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/221944)
4 years, 5 months ago (2016-07-21 00:57:24 UTC) #30
Mike West
From the presubmit failure: *************** chrome/browser/media/router/mojo/OWNERS is missing the following lines: per-file *_type_converter*.*=set noparent per-file ...
4 years, 5 months ago (2016-07-21 07:30:14 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2145983003/160001
4 years, 5 months ago (2016-07-21 17:00:00 UTC) #33
mark a. foltz
On 2016/07/21 at 07:30:14, mkwst wrote: > From the presubmit failure: > > *************** > ...
4 years, 5 months ago (2016-07-21 17:01:20 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-21 17:58:01 UTC) #35
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 18:00:48 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/bfbff851505f6314f4b0f7eaf3b22e16348f3528
Cr-Commit-Position: refs/heads/master@{#406897}

Powered by Google App Engine
This is Rietveld 408576698