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

Issue 1376703002: Presentation API: reject screen availability observing on Android low ram devices. (Closed)

Created:
5 years, 2 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, 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

Presentation API: reject screen availability observing on Android low ram devices. This is changing the MediaRouter interfaces (MediaSinksObserver) in order to allow the Android implementation to be able to reject observing. BUG=507702 Committed: https://crrev.com/0c8ce52069446e76b6c8bb31950b8b03ed716004 Cr-Commit-Position: refs/heads/master@{#352140}

Patch Set 1 #

Patch Set 2 : add moar unit tests #

Total comments: 11

Patch Set 3 : review comments and compile fix #

Total comments: 6

Patch Set 4 : review comments #

Total comments: 3

Patch Set 5 : rebase #

Patch Set 6 : fix gmock usage #

Patch Set 7 : #

Patch Set 8 : fix and add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -24 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java View 1 2 3 4 5 6 4 chunks +12 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterTest.java View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/media/android/router/media_router_android.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/media_sinks_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_sinks_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/mock_media_router.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/router/mock_screen_availability_listener.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl.cc View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc View 1 2 3 4 5 6 7 4 chunks +19 lines, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 2 5 chunks +30 lines, -9 lines 0 comments Download
M content/public/browser/presentation_screen_availability_listener.h View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (18 generated)
mlamouri (slow - plz ping)
Could you please review the following changes: avayvod: * bauerb: (OWNER stamp required) chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterTest.java mfoltz: ...
5 years, 2 months ago (2015-09-29 11:04:30 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/1376703002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java File chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java (right): https://codereview.chromium.org/1376703002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java#newcode204 chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java:204: } catch (NoClassDefFoundError e) { avayvod@, do you know ...
5 years, 2 months ago (2015-09-29 11:04:53 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/1376703002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java File chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java (right): https://codereview.chromium.org/1376703002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java#newcode126 chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java:126: return false; Nit: Consider inlining this block. https://codereview.chromium.org/1376703002/diff/20001/chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterTest.java File ...
5 years, 2 months ago (2015-09-29 11:24:07 UTC) #4
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/1376703002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java File chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java (right): https://codereview.chromium.org/1376703002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java#newcode126 chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java:126: return false; On 2015/09/29 at 11:24:07, ...
5 years, 2 months ago (2015-09-29 11:34:27 UTC) #5
Bernhard Bauer
lgtm
5 years, 2 months ago (2015-09-29 12:19:23 UTC) #6
whywhat
https://codereview.chromium.org/1376703002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java File chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java (right): https://codereview.chromium.org/1376703002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java#newcode122 chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java:122: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { Please, use org.chromium.base.SysUtils.isLowEndDevice https://codereview.chromium.org/1376703002/diff/40001/chrome/browser/media/router/media_sinks_observer.cc ...
5 years, 2 months ago (2015-09-29 12:29:22 UTC) #7
whywhat
also lgtm % comments
5 years, 2 months ago (2015-09-29 13:02:22 UTC) #8
mlamouri (slow - plz ping)
mfoltz@, PTAL. https://codereview.chromium.org/1376703002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java File chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java (right): https://codereview.chromium.org/1376703002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java#newcode122 chrome/android/java/src/org/chromium/chrome/browser/media/router/ChromeMediaRouter.java:122: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { On 2015/09/29 ...
5 years, 2 months ago (2015-09-29 14:44:52 UTC) #9
mark a. foltz
LGTM, comments but no changes requested https://codereview.chromium.org/1376703002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java File chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java (right): https://codereview.chromium.org/1376703002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java#newcode205 chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastMediaRouteProvider.java:205: // Happens with ...
5 years, 2 months ago (2015-10-01 18:33:28 UTC) #10
mlamouri (slow - plz ping)
https://codereview.chromium.org/1376703002/diff/60001/chrome/browser/media/router/presentation_service_delegate_impl.cc File chrome/browser/media/router/presentation_service_delegate_impl.cc (right): https://codereview.chromium.org/1376703002/diff/60001/chrome/browser/media/router/presentation_service_delegate_impl.cc#newcode188 chrome/browser/media/router/presentation_service_delegate_impl.cc:188: if (!sinks_observer_->is_active()) { On 2015/10/01 at 18:33:28, mfoltz_ooo_until_10_4 wrote: ...
5 years, 2 months ago (2015-10-01 21:40:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/60001
5 years, 2 months ago (2015-10-01 21:41:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/11760) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-01 21:44:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/80001
5 years, 2 months ago (2015-10-01 22:03:38 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/115386) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 2 months ago (2015-10-01 22:08:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/100001
5 years, 2 months ago (2015-10-02 10:27:54 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/127054)
5 years, 2 months ago (2015-10-02 10:42:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/100001
5 years, 2 months ago (2015-10-02 11:48:17 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/139992)
5 years, 2 months ago (2015-10-02 12:05:25 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/140001
5 years, 2 months ago (2015-10-02 13:54:43 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/77067)
5 years, 2 months ago (2015-10-02 16:49:25 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/140001
5 years, 2 months ago (2015-10-02 17:21:10 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/77174)
5 years, 2 months ago (2015-10-02 20:06:27 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1376703002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1376703002/140001
5 years, 2 months ago (2015-10-02 20:15:29 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 2 months ago (2015-10-02 21:47:48 UTC) #42
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 21:48:33 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0c8ce52069446e76b6c8bb31950b8b03ed716004
Cr-Commit-Position: refs/heads/master@{#352140}

Powered by Google App Engine
This is Rietveld 408576698