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

Issue 2638973004: Use ContainerView for PowerSaveBlocker to keep screen on (Closed)

Created:
3 years, 11 months ago by Jinsuk Kim
Modified:
3 years, 11 months ago
Reviewers:
Theresa, boliu
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ContainerView for PowerSaveBlocker to keep screen on PowerSaveBlocker used to add/remove a child view to the container just to invoke |View.keepScreenOn| on it. This CL uses the container view instead so as to avoid repeating view creation/deletion. BUG=681738 Review-Url: https://codereview.chromium.org/2638973004 Cr-Commit-Position: refs/heads/master@{#444989} Committed: https://chromium.googlesource.com/chromium/src/+/6795958b17b2aacf0ff1053d3df0948a3e4a1ad4

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 6

Patch Set 3 : comments #

Patch Set 4 : fix tests/2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -24 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientFullScreenTest.java View 1 3 chunks +5 lines, -6 lines 0 comments Download
M device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java View 1 2 3 1 chunk +8 lines, -8 lines 0 comments Download
M device/power_save_blocker/power_save_blocker_android.cc View 2 chunks +6 lines, -10 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ViewAndroidDelegate.java View 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/view_android.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/android/view_android.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
Jinsuk Kim
Removed the weak reference to the view on which setKeepScreenOn is called in PowerSaveBlocker. I ...
3 years, 11 months ago (2017-01-18 15:41:16 UTC) #9
boliu
https://codereview.chromium.org/2638973004/diff/60002/device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java File device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java (right): https://codereview.chromium.org/2638973004/diff/60002/device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java#newcode14 device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java:14: private View mKeepScreenOnView; the weakreference here is not because ...
3 years, 11 months ago (2017-01-18 18:21:16 UTC) #10
Jinsuk Kim
https://codereview.chromium.org/2638973004/diff/60002/device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java File device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java (right): https://codereview.chromium.org/2638973004/diff/60002/device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java#newcode14 device/power_save_blocker/android/java/src/org/chromium/device/power_save_blocker/PowerSaveBlocker.java:14: private View mKeepScreenOnView; On 2017/01/18 18:21:16, boliu wrote: > ...
3 years, 11 months ago (2017-01-19 23:48:08 UTC) #11
boliu
lgtm
3 years, 11 months ago (2017-01-19 23:51:06 UTC) #12
Jinsuk Kim
twellington@chromium.org: Please review changes in ui/android
3 years, 11 months ago (2017-01-20 00:08:48 UTC) #14
Theresa
rubber stamp lgtm boliu@ - are you ready to be a ui/android OWNER for specific ...
3 years, 11 months ago (2017-01-20 00:09:54 UTC) #15
boliu
On 2017/01/20 00:09:54, Theresa wrote: > rubber stamp lgtm > > boliu@ - are you ...
3 years, 11 months ago (2017-01-20 01:19:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2638973004/110001
3 years, 11 months ago (2017-01-20 05:50:32 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 05:56:09 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/6795958b17b2aacf0ff1053d3df0...

Powered by Google App Engine
This is Rietveld 408576698