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

Issue 1143603004: [Media Router] Add Media Router Mojo impl code. (Closed)

Created:
5 years, 7 months ago by imcheng (use chromium acct)
Modified:
5 years, 4 months ago
Reviewers:
mark a. foltz, xhwang, Wez
CC:
chromium-reviews, posciak+watch_chromium.org, media-router+watch_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_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] Add Media Router Mojo impl code. Took over Kevin's patch 1126923002. This code bridges calls from the Media Router to the Media Router Provider Manager. CL comprises: - Logic for marshaling data across internal and Mojo structs via Type Converters already upstreamed. - Awareness of the MRPM extension's suspend state - A BrowserContextKeyedServiceFactory for constructing and managing Mojo service objects. Also included are unit tests, supporting mock classes, and some trivial miscellaneous name changes. BUG=461815, 464205 Committed: https://crrev.com/7f1dfe3b436ae1df300867f7dab3c8e0569ed95d Cr-Commit-Position: refs/heads/master@{#331868}

Patch Set 1 : PS11 from Kevin's 1126923002 #

Patch Set 2 : Rebase #

Patch Set 3 : Addressed Wez's comments #

Total comments: 36

Patch Set 4 : Addressed Wez's 2nd comments #

Total comments: 6

Patch Set 5 : Addressed wez's 3rd comments #

Total comments: 23

Patch Set 6 : try to combine gyp/gn targets #

Patch Set 7 : Rebase #

Patch Set 8 : Addressed nits #

Total comments: 42

Patch Set 9 : Addressed Xiaohan's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1376 lines, -38 lines) Patch
M chrome/browser/media/router/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/media/router/media_router.h View 1 2 3 4 5 6 7 8 7 chunks +27 lines, -12 lines 0 comments Download
M chrome/browser/media/router/media_router.gyp View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.gypi View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_impl.h View 1 2 3 4 5 6 7 8 1 chunk +187 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +374 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_impl_factory.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_impl_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +380 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_test.h View 1 2 3 4 5 6 7 8 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_router_mojo_test.cc View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_routes_observer.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/media/router/media_routes_observer.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/media/router/media_sinks_observer.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_sinks_observer.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/media/router/mock_media_router.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/media/router/mock_media_router.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/media/router/test_helper.h View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/media/router/test_helper.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/query_result_manager_unittest.cc View 1 2 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
imcheng (use chromium acct)
I updated the patch description per your suggestion. PTAL.
5 years, 7 months ago (2015-05-18 22:17:42 UTC) #4
imcheng (use chromium acct)
Ping. Also ping for https://codereview.chromium.org/1139203003/
5 years, 7 months ago (2015-05-19 21:56:59 UTC) #5
Wez
On 2015/05/19 21:56:59, imcheng wrote: > Ping. Also ping for https://codereview.chromium.org/1139203003/ Gah, my comments ended ...
5 years, 7 months ago (2015-05-20 23:40:02 UTC) #6
imcheng (use chromium acct)
Addressed comments from https://codereview.chromium.org/1126923002/. PTAL.
5 years, 7 months ago (2015-05-21 19:29:14 UTC) #7
Wez
Sorry, there's a load more comments in replies on the original CL - if you ...
5 years, 7 months ago (2015-05-22 00:05:39 UTC) #8
imcheng (use chromium acct)
https://codereview.chromium.org/1143603004/diff/80001/chrome/browser/media/router/media_router.h File chrome/browser/media/router/media_router.h (right): https://codereview.chromium.org/1143603004/diff/80001/chrome/browser/media/router/media_router.h#newcode83 chrome/browser/media/router/media_router.h:83: // It is invalid to request the same observer ...
5 years, 7 months ago (2015-05-22 00:54:07 UTC) #9
Wez
https://codereview.chromium.org/1143603004/diff/80001/chrome/browser/media/router/media_router_mojo_impl.cc File chrome/browser/media/router/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1143603004/diff/80001/chrome/browser/media/router/media_router_mojo_impl.cc#newcode245 chrome/browser/media/router/media_router_mojo_impl.cc:245: // is not inside the ObserverList iteration. On 2015/05/22 ...
5 years, 7 months ago (2015-05-23 00:45:47 UTC) #10
imcheng (use chromium acct)
PTAL. I would like to add an external reviewer if it looks good to you. ...
5 years, 7 months ago (2015-05-26 17:58:32 UTC) #11
mark a. foltz
https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn#newcode36 chrome/browser/media/router/BUILD.gn:36: source_set("keyed_service_factories") { Why do we need a distinct library ...
5 years, 7 months ago (2015-05-26 20:14:29 UTC) #13
imcheng (use chromium acct)
https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn#newcode36 chrome/browser/media/router/BUILD.gn:36: source_set("keyed_service_factories") { On 2015/05/26 20:14:29, mark a. foltz wrote: ...
5 years, 7 months ago (2015-05-26 20:54:03 UTC) #14
mark a. foltz
On 2015/05/26 20:54:03, imcheng wrote: > https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn > File chrome/browser/media/router/BUILD.gn (right): > > https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn#newcode36 > ...
5 years, 7 months ago (2015-05-26 22:19:57 UTC) #15
Wez
LGTM once these comment nits are addressed. https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/media_router_mojo_impl.cc File chrome/browser/media/router/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/media_router_mojo_impl.cc#newcode226 chrome/browser/media/router/media_router_mojo_impl.cc:226: // cached ...
5 years, 7 months ago (2015-05-26 23:41:31 UTC) #16
imcheng (use chromium acct)
https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1143603004/diff/120001/chrome/browser/media/router/BUILD.gn#newcode36 chrome/browser/media/router/BUILD.gn:36: source_set("keyed_service_factories") { On 2015/05/26 20:54:03, imcheng wrote: > On ...
5 years, 7 months ago (2015-05-27 01:06:04 UTC) #18
imcheng (use chromium acct)
+xhwang for review
5 years, 7 months ago (2015-05-27 18:26:19 UTC) #20
xhwang
This is my first round of comments. Mostly nits. https://codereview.chromium.org/1143603004/diff/200001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1143603004/diff/200001/chrome/browser/media/router/BUILD.gn#newcode20 chrome/browser/media/router/BUILD.gn:20: ...
5 years, 7 months ago (2015-05-28 06:53:22 UTC) #21
imcheng (use chromium acct)
Thanks for the quick review! https://codereview.chromium.org/1143603004/diff/200001/chrome/browser/media/router/BUILD.gn File chrome/browser/media/router/BUILD.gn (right): https://codereview.chromium.org/1143603004/diff/200001/chrome/browser/media/router/BUILD.gn#newcode20 chrome/browser/media/router/BUILD.gn:20: "//components/keyed_service/content", On 2015/05/28 06:53:20, ...
5 years, 6 months ago (2015-05-28 20:46:36 UTC) #22
xhwang
Thanks! LGTM! https://codereview.chromium.org/1143603004/diff/200001/chrome/browser/media/router/media_router_mojo_impl.h File chrome/browser/media/router/media_router_mojo_impl.h (right): https://codereview.chromium.org/1143603004/diff/200001/chrome/browser/media/router/media_router_mojo_impl.h#newcode53 chrome/browser/media/router/media_router_mojo_impl.h:53: static void BindToRequest( On 2015/05/28 20:46:35, imcheng ...
5 years, 6 months ago (2015-05-28 22:08:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1143603004/210001
5 years, 6 months ago (2015-05-28 22:19:47 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:210001)
5 years, 6 months ago (2015-05-28 22:26:02 UTC) #27
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/7f1dfe3b436ae1df300867f7dab3c8e0569ed95d Cr-Commit-Position: refs/heads/master@{#331868}
5 years, 6 months ago (2015-05-28 22:26:47 UTC) #28
dmurph
On 2015/05/28 at 22:26:47, commit-bot wrote: > Patchset 9 (id:??) landed as https://crrev.com/7f1dfe3b436ae1df300867f7dab3c8e0569ed95d > Cr-Commit-Position: ...
5 years, 6 months ago (2015-05-29 03:04:09 UTC) #29
dmurph
5 years, 6 months ago (2015-05-29 03:13:10 UTC) #30
Message was sent while issue was closed.
On 2015/05/29 at 03:04:09, dmurph wrote:
> On 2015/05/28 at 22:26:47, commit-bot wrote:
> > Patchset 9 (id:??) landed as
https://crrev.com/7f1dfe3b436ae1df300867f7dab3c8e0569ed95d
> > Cr-Commit-Position: refs/heads/master@{#331868}
> 
> Note: possible bot flakiness or failures from this:
>
http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Tes...
>
http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Tes...

Nvm, found culprit https://code.google.com/p/chromium/issues/detail?id=493525

Powered by Google App Engine
This is Rietveld 408576698