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

Issue 2389743002: Content Modularization Project: Move Wake Lock to //device (Closed)

Created:
4 years, 2 months ago by blundell
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, alogvinov, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, haraken, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Content Modularization Project: Move Wake Lock to //device As part of the Content Modularization Project, this CL moves the implementation of the wake_lock_service.mojom interface from //content/browser to //device. It also moves that interface itself out from Blink to //device. BUG=612346 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/d46e883138e3023c3ebc342f64dc8eda22926144 Cr-Commit-Position: refs/heads/master@{#423831}

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : fix blink tests #

Patch Set 4 : Eliminate frame reference #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -364 lines) Patch
M content/browser/BUILD.gn View 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/DEPS View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/wake_lock/wake_lock_browsertest.cc View 3 chunks +2 lines, -2 lines 0 comments Download
D content/browser/wake_lock/wake_lock_service_context.h View 1 chunk +0 lines, -69 lines 0 comments Download
D content/browser/wake_lock/wake_lock_service_context.cc View 1 chunk +0 lines, -82 lines 0 comments Download
D content/browser/wake_lock/wake_lock_service_context_unittest.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D content/browser/wake_lock/wake_lock_service_impl.h View 1 chunk +0 lines, -35 lines 0 comments Download
D content/browser/wake_lock/wake_lock_service_impl.cc View 1 chunk +0 lines, -37 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 4 chunks +3 lines, -3 lines 0 comments Download
M content/test/BUILD.gn View 2 chunks +1 line, -1 line 0 comments Download
M device/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
A device/wake_lock/BUILD.gn View 1 1 chunk +23 lines, -0 lines 0 comments Download
A + device/wake_lock/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
A + device/wake_lock/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
A + device/wake_lock/public/interfaces/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A + device/wake_lock/public/interfaces/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + device/wake_lock/public/interfaces/wake_lock_service.mojom View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + device/wake_lock/wake_lock_service_context.h View 5 chunks +9 lines, -13 lines 0 comments Download
A + device/wake_lock/wake_lock_service_context.cc View 4 chunks +4 lines, -4 lines 0 comments Download
A + device/wake_lock/wake_lock_service_context_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
A + device/wake_lock/wake_lock_service_impl.h View 2 chunks +7 lines, -7 lines 0 comments Download
A + device/wake_lock/wake_lock_service_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/wake_lock/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/wake_lock/DEPS View 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/wake_lock/ScreenWakeLock.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScreenWakeLockTest.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/public/platform/modules/wake_lock/wake_lock_service.mojom View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
blundell
jam: //content rockot: //device esprehn: //third_party/WebKit dcheng: security stamp on //device/wake_lock/public/interfaces Thanks!
4 years, 2 months ago (2016-10-03 14:32:51 UTC) #11
blundell
alogvinov: FYI
4 years, 2 months ago (2016-10-03 14:33:30 UTC) #12
dcheng
mojo changes lgtm
4 years, 2 months ago (2016-10-03 17:39:08 UTC) #17
jam
lgtm
4 years, 2 months ago (2016-10-03 17:43:47 UTC) #18
Ken Rockot(use gerrit already)
device lgtm with optional nit, since you're effectively renaming the interface anyway. Optional nit: Calling ...
4 years, 2 months ago (2016-10-03 17:54:11 UTC) #19
blundell
esprehn@: ping for //third_party/WebKit. Thanks!
4 years, 2 months ago (2016-10-05 11:49:43 UTC) #20
blundell
Jochen, could you please look at //third_party/WebKit? Thanks!
4 years, 2 months ago (2016-10-07 07:01:20 UTC) #22
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-07 07:05:48 UTC) #23
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/2389743002/60001
4 years, 2 months ago (2016-10-07 07:09:12 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-07 10:34:52 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d46e883138e3023c3ebc342f64dc8eda22926144 Cr-Commit-Position: refs/heads/master@{#423831}
4 years, 2 months ago (2016-10-07 10:37:15 UTC) #28
xing.xu
On 2016/10/07 10:37:15, commit-bot: I haz the power wrote: > Patchset 4 (id:??) landed as ...
4 years, 2 months ago (2016-10-07 15:12:42 UTC) #29
blundell
4 years, 2 months ago (2016-10-10 08:15:43 UTC) #30
Message was sent while issue was closed.
On 2016/10/07 15:12:42, xing.xu wrote:
> On 2016/10/07 10:37:15, commit-bot: I haz the power wrote:
> > Patchset 4 (id:??) landed as
> > https://crrev.com/d46e883138e3023c3ebc342f64dc8eda22926144
> > Cr-Commit-Position: refs/heads/master@{#423831}
> 
> In android, this wake lock is finally done by View.setKeepScreenOn and
> powermanager. That's why android's implementation depends on NativeView. But
why
> does a feature like wake lock needs to depend on Android's View system? Will
> Android change this in the future?

I don't know.

Powered by Google App Engine
This is Rietveld 408576698