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

Issue 2126733002: Make ScreenWakeLock ContextLifecycleObserver instead of LocalFrameLifecycleObserver (Closed)

Created:
4 years, 5 months ago by haraken
Modified:
4 years, 5 months ago
Reviewers:
alogvinov, dcheng
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ScreenWakeLock ContextLifecycleObserver instead of LocalFrameLifecycleObserver It is wrong to override LocalFrameLifecycleObserver::willDetachFromFrameHost because it is not called when you expect it being called (it is not called when a page navigates). I believe what you really want is to observe ContextLifecycleObserver::contextDestroyed, which is called when a document is detached. Also I don't see any reason ScreenWakeLock needs to observer didCommitLoad. I think that observing ContextLifecycleObserver::contextDestroyed would be enough. Currently ScreenWakeLock is the only customer of didCommitLoad. BUG=610176 Committed: https://crrev.com/6c996c7c0c1ba8de61e4a18732b43a03315ab318 Cr-Commit-Position: refs/heads/master@{#404052}

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : temp #

Total comments: 1

Patch Set 4 : temp #

Total comments: 8

Patch Set 5 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -36 lines) Patch
M third_party/WebKit/Source/modules/wake_lock/ScreenWakeLock.h View 1 2 3 chunks +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/wake_lock/ScreenWakeLock.cpp View 1 2 3 5 chunks +17 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
haraken
PTAL
4 years, 5 months ago (2016-07-06 04:36:05 UTC) #2
dcheng
lgtm
4 years, 5 months ago (2016-07-06 04:44:08 UTC) #3
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/2126733002/20001
4 years, 5 months ago (2016-07-06 04:44:49 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/186368)
4 years, 5 months ago (2016-07-06 05:06:13 UTC) #7
haraken
Fixed bot failures. https://codereview.chromium.org/2126733002/diff/40001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2126733002/diff/40001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1492 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1492: ScreenWakeLock::provideTo(*m_frame, m_client ? m_client->serviceRegistry(): nullptr); It's ...
4 years, 5 months ago (2016-07-06 08:27:39 UTC) #8
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/2126733002/60001
4 years, 5 months ago (2016-07-06 08:28:02 UTC) #11
dcheng
https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc File content/browser/wake_lock/wake_lock_browsertest.cc (left): https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc#oldcode264 content/browser/wake_lock/wake_lock_browsertest.cc:264: IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) { On 2016/07/06 08:27:39, haraken wrote: > ...
4 years, 5 months ago (2016-07-06 08:34:42 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/212692)
4 years, 5 months ago (2016-07-06 08:36:03 UTC) #14
alogvinov
https://codereview.chromium.org/2126733002/diff/60001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2126733002/diff/60001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1491 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1491: if (RuntimeEnabledFeatures::wakeLockEnabled()) Sorry I may have missed something, but ...
4 years, 5 months ago (2016-07-06 08:42:17 UTC) #15
alogvinov
https://codereview.chromium.org/2126733002/diff/60001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): https://codereview.chromium.org/2126733002/diff/60001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1491 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:1491: if (RuntimeEnabledFeatures::wakeLockEnabled()) On 2016/07/06 08:42:17, alogvinov wrote: > Sorry ...
4 years, 5 months ago (2016-07-06 08:50:07 UTC) #16
haraken
https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc File content/browser/wake_lock/wake_lock_browsertest.cc (left): https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc#oldcode264 content/browser/wake_lock/wake_lock_browsertest.cc:264: IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) { On 2016/07/06 08:34:42, dcheng wrote: > ...
4 years, 5 months ago (2016-07-06 08:51:24 UTC) #17
haraken
On 2016/07/06 08:50:07, alogvinov wrote: > https://codereview.chromium.org/2126733002/diff/60001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp > File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (left): > > https://codereview.chromium.org/2126733002/diff/60001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#oldcode1491 > ...
4 years, 5 months ago (2016-07-06 08:52:36 UTC) #18
alogvinov
https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc File content/browser/wake_lock/wake_lock_browsertest.cc (left): https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc#oldcode264 content/browser/wake_lock/wake_lock_browsertest.cc:264: IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) { On 2016/07/06 08:51:23, haraken wrote: > ...
4 years, 5 months ago (2016-07-06 08:58:58 UTC) #19
dcheng
https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc File content/browser/wake_lock/wake_lock_browsertest.cc (left): https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc#oldcode264 content/browser/wake_lock/wake_lock_browsertest.cc:264: IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) { On 2016/07/06 08:58:58, alogvinov wrote: > ...
4 years, 5 months ago (2016-07-06 09:04:13 UTC) #20
haraken
https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc File content/browser/wake_lock/wake_lock_browsertest.cc (left): https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc#oldcode264 content/browser/wake_lock/wake_lock_browsertest.cc:264: IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) { On 2016/07/06 08:58:58, alogvinov wrote: > ...
4 years, 5 months ago (2016-07-06 09:14:35 UTC) #21
haraken
On 2016/07/06 09:14:35, haraken wrote: > https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc > File content/browser/wake_lock/wake_lock_browsertest.cc (left): > > https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc#oldcode264 > ...
4 years, 5 months ago (2016-07-06 11:07:29 UTC) #22
alogvinov
On 2016/07/06 11:07:29, haraken wrote: > On 2016/07/06 09:14:35, haraken wrote: > > > https://codereview.chromium.org/2126733002/diff/60001/content/browser/wake_lock/wake_lock_browsertest.cc ...
4 years, 5 months ago (2016-07-06 12:22:10 UTC) #23
haraken
On 2016/07/06 12:22:10, alogvinov wrote: > On 2016/07/06 11:07:29, haraken wrote: > > On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 12:39:48 UTC) #24
dcheng
On 2016/07/06 12:39:48, haraken wrote: > On 2016/07/06 12:22:10, alogvinov wrote: > > On 2016/07/06 ...
4 years, 5 months ago (2016-07-07 00:28:25 UTC) #25
haraken
On 2016/07/07 00:28:25, dcheng wrote: > On 2016/07/06 12:39:48, haraken wrote: > > On 2016/07/06 ...
4 years, 5 months ago (2016-07-07 00:32:08 UTC) #26
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/2126733002/80001
4 years, 5 months ago (2016-07-07 00:33:13 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-07 02:59:26 UTC) #30
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 02:59:31 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 03:01:34 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6c996c7c0c1ba8de61e4a18732b43a03315ab318
Cr-Commit-Position: refs/heads/master@{#404052}

Powered by Google App Engine
This is Rietveld 408576698