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

Issue 1911183002: [Media Router] Implement an internal Media Routes observer. (Closed)

Created:
4 years, 8 months ago by mark a. foltz
Modified:
4 years, 7 months ago
Reviewers:
imcheng, apacible
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, mcasas+watch+vc_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] Implement an internal Media Routes observer. This observer has two jobs: 1. Keep track of whether there is a local route, so we know when to pass JoinRoute requests to the MRPM. 2. Keep track of off-the-record route ids, so we know which routes to terminate when the incognito profile is destroyed. Feature #2 replaces the existing mechanism for tracking OTR route ids. Note that this requires adding an Initialize() method to MediaRouterBase, as we shouldn't create/destroy observers in the MR ctor/dtor. TODO: Clean up some redundant code in the Mojo unittest. BUG=599996 Committed: https://crrev.com/bdabddfbfaade62b4e734bb66af4e04dc14a5f6c Cr-Commit-Position: refs/heads/master@{#390000}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address imcheng@ comments #

Patch Set 3 : Fix bad merge & android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -48 lines) Patch
M chrome/browser/media/android/router/media_router_android.cc View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/media/router/media_router_base.h View 1 4 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/media/router/media_router_base.cc View 1 2 5 chunks +49 lines, -23 lines 0 comments Download
M chrome/browser/media/router/media_router_factory.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router.mojom View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 4 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 7 chunks +61 lines, -2 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_type_converters.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/route_request_result.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
mark a. foltz
4 years, 8 months ago (2016-04-22 00:02:19 UTC) #2
imcheng
lgtm with a couple of suggestions. Sorry for the delay. https://codereview.chromium.org/1911183002/diff/1/chrome/browser/media/router/media_router_base.cc File chrome/browser/media/router/media_router_base.cc (right): https://codereview.chromium.org/1911183002/diff/1/chrome/browser/media/router/media_router_base.cc#newcode16 ...
4 years, 8 months ago (2016-04-25 18:59:54 UTC) #3
apacible
lgtm
4 years, 8 months ago (2016-04-25 19:28:57 UTC) #4
mark a. foltz
https://codereview.chromium.org/1911183002/diff/1/chrome/browser/media/router/media_router_base.cc File chrome/browser/media/router/media_router_base.cc (right): https://codereview.chromium.org/1911183002/diff/1/chrome/browser/media/router/media_router_base.cc#newcode16 chrome/browser/media/router/media_router_base.cc:16: MediaRouterBase::~MediaRouterBase() {} On 2016/04/25 at 18:59:54, imcheng wrote: > ...
4 years, 8 months ago (2016-04-26 21:11:10 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911183002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911183002/20001
4 years, 8 months ago (2016-04-26 21:12:29 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/56717) android_chromium_gn_compile_dbg on ...
4 years, 8 months ago (2016-04-26 21:25:15 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911183002/40001
4 years, 7 months ago (2016-04-26 23:35:53 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 00:54:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911183002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911183002/40001
4 years, 7 months ago (2016-04-27 06:02:06 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-04-27 06:10:56 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 06:12:30 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bdabddfbfaade62b4e734bb66af4e04dc14a5f6c
Cr-Commit-Position: refs/heads/master@{#390000}

Powered by Google App Engine
This is Rietveld 408576698