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

Issue 11362018: check the permission for wake lock before calling setWakeMode (Closed)

Created:
8 years, 1 month ago by qinmin
Modified:
8 years, 1 month ago
Reviewers:
joth, Yaron
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

check the permission for wake lock before calling setWakeMode Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165311

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M media/base/android/java/src/org/chromium/media/MediaPlayerListener.java View 2 chunks +6 lines, -1 line 1 comment Download

Messages

Total messages: 10 (0 generated)
qinmin
PTAL
8 years, 1 month ago (2012-10-31 18:42:50 UTC) #1
Yaron
https://codereview.chromium.org/11362018/diff/1/media/base/android/java/src/org/chromium/media/MediaPlayerListener.java File media/base/android/java/src/org/chromium/media/MediaPlayerListener.java (right): https://codereview.chromium.org/11362018/diff/1/media/base/android/java/src/org/chromium/media/MediaPlayerListener.java#newcode98 media/base/android/java/src/org/chromium/media/MediaPlayerListener.java:98: if (PackageManager.PERMISSION_GRANTED == Shouldn't we just add the WAKE_LOCK ...
8 years, 1 month ago (2012-10-31 19:26:39 UTC) #2
qinmin
This is for the webview, which does not have permissions. On 2012/10/31 19:26:39, Yaron wrote: ...
8 years, 1 month ago (2012-10-31 20:12:11 UTC) #3
Yaron
lgtm
8 years, 1 month ago (2012-10-31 20:18:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11362018/1
8 years, 1 month ago (2012-10-31 21:39:15 UTC) #5
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
8 years, 1 month ago (2012-10-31 21:52:47 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11362018/1
8 years, 1 month ago (2012-11-01 00:15:57 UTC) #7
commit-bot: I haz the power
Change committed as 165311
8 years, 1 month ago (2012-11-01 08:16:33 UTC) #8
joth
Thanks qinmin! Did you have any thoughts on using LayoutParams FLAG_KEEP_SCREEN_ON for apps without the ...
8 years, 1 month ago (2012-11-01 10:26:22 UTC) #9
qinmin
8 years, 1 month ago (2012-11-01 13:16:48 UTC) #10
For MediaPlayer, i think we have to use PowerManager constants as the API
does not create a new wakelock directly. But I think we can use that
constant else if we are creating a wake lock

Min

On Thu, Nov 1, 2012 at 3:26 AM, Jonathan Dixon <joth@chromium.org> wrote:

> Thanks qinmin!
> Did you have any thoughts on using LayoutParams FLAG_KEEP_SCREEN_ON for
> apps without the permission, or for all cases? (I could raise a lower prior
> crbug for to look into that if needed)
>
>
>
>
>
> On 1 November 2012 08:16, <commit-bot@chromium.org> wrote:
>
>> Change committed as 165311
>>
>>
https://chromiumcodereview.**appspot.com/11362018/<https://chromiumcodereview...
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698