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

Issue 2111303003: [Media Router] Replace route messaging API. (Closed)

Created:
4 years, 5 months ago by imcheng
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] Replace route messaging API. Remove old callback-based ListenForRouteMessages API and replace it with StartListeningForRouteMessages and OnRouteMessagesReceived. The rationale is return value based API doesn't work well for event pages; when the event page is suspended, the callback supplied by the old API is lost and cannot be restored when the extension wakes up. Switching to the listener model unblocks the work to reduce the nessesity of keeping the event page alive and should result in considerably simpler logic on the extension side. To maintain backwards compatibility with older extensions, a smaller adapter logic is introduced in media_router_bindings.js. Add missing WakeReason for StartListeningForRouteMessages. Also added OWNERs for the mojom file to comply with presubmit. BUG=625007 Committed: https://crrev.com/bf455be1850399b8b374809cfc2584e0611e1c77 Cr-Commit-Position: refs/heads/master@{#406083}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : add crbug in media_router_bindings.js todo #

Patch Set 4 : fix tests #

Total comments: 2

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -182 lines) Patch
A + chrome/browser/media/router/mojo/OWNERS View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router.mojom View 1 3 chunks +18 lines, -12 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 3 4 5 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 4 3 chunks +24 lines, -50 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 4 chunks +12 lines, -86 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_metrics.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 5 chunks +47 lines, -14 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (16 generated)
imcheng
PTAL
4 years, 5 months ago (2016-07-01 01:39:43 UTC) #4
mark a. foltz
Overall looks good with a few documentation updates. Does the mojo_impl unittest need to be ...
4 years, 5 months ago (2016-07-02 01:18:43 UTC) #5
mark a. foltz
Regarding backwards compatibility, will we also need to worry about backwards compatibility with Chromium M53 ...
4 years, 5 months ago (2016-07-02 01:23:58 UTC) #6
imcheng
Addressed comments. I plan to merge this patch and the corresponding extension change back to ...
4 years, 5 months ago (2016-07-06 17:56:23 UTC) #7
imcheng
+apacible, PTAL at everything. +isherman, PTAL at histograms.xml -mfoltz as he is on vacation. Thanks
4 years, 5 months ago (2016-07-06 18:06:51 UTC) #9
Ilya Sherman
lgtm
4 years, 5 months ago (2016-07-06 22:50:04 UTC) #10
apacible
https://codereview.chromium.org/2111303003/diff/40001/extensions/renderer/resources/media_router_bindings.js File extensions/renderer/resources/media_router_bindings.js (right): https://codereview.chromium.org/2111303003/diff/40001/extensions/renderer/resources/media_router_bindings.js#newcode466 extensions/renderer/resources/media_router_bindings.js:466: * TODO(imcheng): Remove in M55. I'm likely missing context ...
4 years, 5 months ago (2016-07-07 15:57:44 UTC) #11
imcheng
Thanks. I will fix the unit tests shortly. https://codereview.chromium.org/2111303003/diff/40001/extensions/renderer/resources/media_router_bindings.js File extensions/renderer/resources/media_router_bindings.js (right): https://codereview.chromium.org/2111303003/diff/40001/extensions/renderer/resources/media_router_bindings.js#newcode466 extensions/renderer/resources/media_router_bindings.js:466: * ...
4 years, 5 months ago (2016-07-07 18:00:58 UTC) #12
apacible
lgtm
4 years, 5 months ago (2016-07-07 18:06:27 UTC) #13
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/2111303003/80001
4 years, 5 months ago (2016-07-07 20:58:36 UTC) #16
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/213869)
4 years, 5 months ago (2016-07-07 21:09:10 UTC) #18
imcheng
dcheng: Could you please take a look at the mojom changes?
4 years, 5 months ago (2016-07-07 22:27:36 UTC) #20
dcheng
Has this mojom been security reviewed in the past? It looks like the OWNERS file ...
4 years, 5 months ago (2016-07-08 06:15:22 UTC) #21
imcheng
I don't know if we've had a security review specifically for the mojom. We've had ...
4 years, 5 months ago (2016-07-08 06:47:11 UTC) #22
imcheng
Ping for dcheng.
4 years, 5 months ago (2016-07-11 17:50:14 UTC) #23
dcheng
rs lgtm for mojo changes (since this is just rearranging some plumbing and apparently needs ...
4 years, 5 months ago (2016-07-18 16:14:35 UTC) #24
imcheng
Thanks! https://codereview.chromium.org/2111303003/diff/80001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/2111303003/diff/80001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode764 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:764: observer_it.GetNext() != nullptr && observer_it.GetNext() == nullptr; On ...
4 years, 5 months ago (2016-07-18 18:56:42 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/2111303003/100001
4 years, 5 months ago (2016-07-18 20:27:37 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-18 20:35:06 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 20:35:10 UTC) #35
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 20:36:22 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bf455be1850399b8b374809cfc2584e0611e1c77
Cr-Commit-Position: refs/heads/master@{#406083}

Powered by Google App Engine
This is Rietveld 408576698