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

Issue 1507743005: [MediaRouter] Renames CloseRoute() to Terminate() and creates DetachRoute() (Closed)

Created:
5 years ago by mark a. foltz
Modified:
5 years ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), 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

+isherman for histograms.xml +jdufault for chrome/browser/ui/ash Renames CloseRoute() to Terminate() and creates DetachRoute(). This clarifies the role of the two methods invoked on PresentationConnection by plumbing the renaming through the various layers. PresentationConnection.close() -> CloseConnection (PresentationService) -> DetachRoute (MediaRouter) PresentationConnection.terminate() -> Terminate -> TerminateRoute It also removes the mapping for closed and terminated presentations from the PresentationFrame to prevent duplicate invocations of DetachRoute. BUG=540803 Committed: https://crrev.com/d0c3de1a60bd68b88ca020f2a04f249a945f2cc8 Cr-Commit-Position: refs/heads/master@{#364908}

Patch Set 1 #

Patch Set 2 : Rename to DetachRoute() and Terminate() #

Patch Set 3 : Forgot a call to DetachRoute! #

Total comments: 26

Patch Set 4 : Respond to imcheng@ and mlamouri@ comments #

Patch Set 5 : Rename OnPresentationSessionDetached to DetachRoute in media_router_android #

Patch Set 6 : Fix media_router_android.h #

Patch Set 7 : Remove duplicate declaration (I'm tired) #

Patch Set 8 : Fix e2e_browsertest #

Patch Set 9 : Fix android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -149 lines) Patch
M chrome/browser/media/android/router/media_router_android.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/media/android/router/media_router_dialog_controller_android.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/media_router.h View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/media/router/media_router.mojom View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/media/router/media_router_metrics.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.cc View 1 4 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl_unittest.cc View 1 7 chunks +34 lines, -27 lines 0 comments Download
M chrome/browser/media/router/mock_media_router.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.h View 1 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 6 chunks +48 lines, -13 lines 0 comments Download
M chrome/browser/media/router/test_helper.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/cast_config_delegate_media_router.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/media_router/media_router_e2e_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.h View 1 1 chunk +4 lines, -6 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 1 chunk +8 lines, -10 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 2 chunks +8 lines, -8 lines 0 comments Download
M content/common/presentation/presentation_service.mojom View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/browser/presentation_service_delegate.h View 1 1 chunk +8 lines, -8 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 5 chunks +11 lines, -11 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
mlamouri (slow - plz ping)
lgtm. Thanks for taking over! https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc File chrome/browser/media/android/router/media_router_android.cc (right): https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc#newcode162 chrome/browser/media/android/router/media_router_android.cc:162: NOTIMPLEMENTED(); Could you add ...
5 years ago (2015-12-10 15:39:51 UTC) #4
Ilya Sherman
histograms.xml lgtm
5 years ago (2015-12-10 16:23:53 UTC) #5
jdufault
chrome/browser/ui/ash lgtm
5 years ago (2015-12-10 18:58:13 UTC) #6
imcheng
https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.h File chrome/browser/media/android/router/media_router_android.h (right): https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.h#newcode54 chrome/browser/media/android/router/media_router_android.h:54: void OnPresentationSessionDetached(const MediaRoute::Id& route_id) override; Remove this function https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/router/media_router.h ...
5 years ago (2015-12-10 19:50:46 UTC) #7
mark a. foltz
https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc File chrome/browser/media/android/router/media_router_android.cc (right): https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc#newcode162 chrome/browser/media/android/router/media_router_android.cc:162: NOTIMPLEMENTED(); On 2015/12/10 at 15:39:51, Mounir Lamouri wrote: > ...
5 years ago (2015-12-10 23:46:49 UTC) #8
imcheng
lgtm + 1 comment https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc File chrome/browser/media/android/router/media_router_android.cc (right): https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc#newcode162 chrome/browser/media/android/router/media_router_android.cc:162: NOTIMPLEMENTED(); On 2015/12/10 23:46:48, mark ...
5 years ago (2015-12-11 00:15:16 UTC) #9
mark a. foltz
On 2015/12/11 at 00:15:16, imcheng wrote: > lgtm + 1 comment > > https://codereview.chromium.org/1507743005/diff/40001/chrome/browser/media/android/router/media_router_android.cc > ...
5 years ago (2015-12-11 06:14:48 UTC) #13
mark a. foltz
+stevenjb for chrome/browser/ui/ash/OWNERS approval
5 years ago (2015-12-11 06:17:51 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1507743005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1507743005/120001
5 years ago (2015-12-11 06:18:17 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/119044) mac_chromium_rel_ng on ...
5 years ago (2015-12-11 06:39:47 UTC) #19
stevenjb
c/b/ui lgtm
5 years ago (2015-12-11 22:46:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1507743005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1507743005/140001
5 years ago (2015-12-12 00:27:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/153151)
5 years ago (2015-12-12 02:09:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1507743005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1507743005/160001
5 years ago (2015-12-12 02:38:51 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-12 04:43:16 UTC) #29
commit-bot: I haz the power
5 years ago (2015-12-12 04:44:03 UTC) #31
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d0c3de1a60bd68b88ca020f2a04f249a945f2cc8
Cr-Commit-Position: refs/heads/master@{#364908}

Powered by Google App Engine
This is Rietveld 408576698