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

Issue 1784533004: [Media Router] Add origins to sink query results. (Closed)

Created:
4 years, 9 months ago by imcheng
Modified:
4 years, 9 months ago
Reviewers:
mark a. foltz, oshima
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_chromium.org, media-router+watch_chromium.org, posciak+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] Add origins to sink query results. Takes over https://codereview.chromium.org/1693963003/ Add |origins| to |OnSinksReceived| API from MRPM to MR. If |origins| is non-empty, then the result of sink query is only valid for those origins. Otherwise, the result is valid for all origins, which is the legacy behavior. The origin checking is done in base MediaSinksObserver class, which will call into the version of |OnSinksReceived| overridable by children classes. BUG=594858 Committed: https://crrev.com/c9adbb1e8d955e1f658d92578ab5a51e4dbc8872 Cr-Commit-Position: refs/heads/master@{#381332}

Patch Set 1 #

Patch Set 2 : added test, renamed OnSinksReceived(sinks,origins) to OnSinksUpdated #

Patch Set 3 : #

Total comments: 24

Patch Set 4 : Addressed comments #

Patch Set 5 : fix tests #

Total comments: 6

Patch Set 6 : addressed comments, fixed tests, use real rfh id whenever possible #

Patch Set 7 : #

Patch Set 8 : compile fix #

Patch Set 9 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -100 lines) Patch
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_router.mojom View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.cc View 1 2 3 4 5 5 chunks +28 lines, -10 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl_unittest.cc View 1 2 3 4 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/media/router/media_sinks_observer.h View 1 2 3 4 5 6 3 chunks +24 lines, -8 lines 0 comments Download
M chrome/browser/media/router/media_sinks_observer.cc View 1 2 3 4 2 chunks +24 lines, -2 lines 0 comments Download
A chrome/browser/media/router/media_sinks_observer_unittest.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/media/router/presentation_media_sinks_observer.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/media/router/presentation_media_sinks_observer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/media/router/presentation_media_sinks_observer_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 4 5 6 chunks +17 lines, -10 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc View 1 2 3 4 5 5 chunks +24 lines, -10 lines 0 comments Download
M chrome/browser/media/router/test_helper.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/media/router/test_helper.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/cast_config_delegate_media_router.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_tray_cast_browsertest_media_router_chromeos.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/media_router/query_result_manager.h View 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/media_router/query_result_manager.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/media_router/query_result_manager_unittest.cc View 1 2 3 4 5 10 chunks +27 lines, -8 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/media_router/media_router_e2e_browsertest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/media_router/test_media_sinks_observer.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/media_router/test_media_sinks_observer.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
imcheng
mfoltz@: PTAL. Tests to come.
4 years, 9 months ago (2016-03-10 18:13:07 UTC) #3
mark a. foltz
Looks good overall, a couple of questions about - Does every media source have an ...
4 years, 9 months ago (2016-03-11 01:20:23 UTC) #4
imcheng
PTAL https://codereview.chromium.org/1784533004/diff/40001/chrome/browser/media/router/media_router.mojom File chrome/browser/media/router/media_router.mojom (right): https://codereview.chromium.org/1784533004/diff/40001/chrome/browser/media/router/media_router.mojom#newcode304 chrome/browser/media/router/media_router.mojom:304: // Called when the Media Route Manager receives ...
4 years, 9 months ago (2016-03-14 21:30:21 UTC) #5
mark a. foltz
LGTM % minor comments addressed https://codereview.chromium.org/1784533004/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/1784533004/diff/80001/chrome/browser/media/router/media_router_mojo_impl.cc#newcode183 chrome/browser/media/router/media_router_mojo_impl.cc:183: DLOG(ERROR) << "Received invalid ...
4 years, 9 months ago (2016-03-15 00:36:43 UTC) #6
mark a. foltz
Also can you please update the BUG= before committing. Thanks!
4 years, 9 months ago (2016-03-15 00:37:25 UTC) #7
imcheng
https://codereview.chromium.org/1784533004/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/1784533004/diff/80001/chrome/browser/media/router/media_router_mojo_impl.cc#newcode183 chrome/browser/media/router/media_router_mojo_impl.cc:183: DLOG(ERROR) << "Received invalid origin: " << origin On ...
4 years, 9 months ago (2016-03-15 01:52:42 UTC) #9
imcheng
+oshima for chrome/browser/ui/ash/cast_config_delegate_media_router.cc
4 years, 9 months ago (2016-03-15 18:32:36 UTC) #11
oshima
lgtm
4 years, 9 months ago (2016-03-15 18:45:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784533004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784533004/160001
4 years, 9 months ago (2016-03-15 21:45:35 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-15 22:17:16 UTC) #17
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 22:18:39 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c9adbb1e8d955e1f658d92578ab5a51e4dbc8872
Cr-Commit-Position: refs/heads/master@{#381332}

Powered by Google App Engine
This is Rietveld 408576698