Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(11)

Issue 2893793003: Convert devtools to be client of WakeLock mojo service. (Closed)

Created:
8 months, 1 week ago by ke.he
Modified:
8 months ago
Reviewers:
dgozman
CC:
chromium-reviews, jam, darin-cc_chromium.org, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert devtools to be client of WakeLock mojo service. Wake Lock is a Mojo interface that wraps PowerSaveBlocker. As part of the creation of standalone Device Service, all browser-side clients of PowerSaveBlocker should be converted to be clients of the Wake Lock Mojo interface instead. BUG=689413 Review-Url: https://codereview.chromium.org/2893793003 Cr-Commit-Position: refs/heads/master@{#473833} Committed: https://chromium.googlesource.com/chromium/src/+/f6fd56037a18d025817064d21222bc078b081428

Patch Set 1 : Convert devtools to be client of WakeLock mojo service. #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -20 lines) Patch
M content/browser/devtools/render_frame_devtools_agent_host.h View 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 4 chunks +25 lines, -15 lines 11 comments Download

Messages

Total messages: 22 (14 generated)
ke.he
Hi, dgozman@, Could you PTAL on this, thanks!
8 months, 1 week ago (2017-05-18 15:42:09 UTC) #11
dgozman
https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode830 content/browser/devtools/render_frame_devtools_agent_host.cc:830: RenderFrameDevToolsAgentHost::GetWakeLockService() { I'm not very good at mojo yet, ...
8 months, 1 week ago (2017-05-18 21:58:45 UTC) #12
ke.he
dgozman@, Thanks! https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode830 content/browser/devtools/render_frame_devtools_agent_host.cc:830: RenderFrameDevToolsAgentHost::GetWakeLockService() { On 2017/05/18 21:58:45, dgozman wrote: ...
8 months, 1 week ago (2017-05-18 23:58:48 UTC) #13
dgozman
Thank you for explanations! lgtm with some questions. https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode834 content/browser/devtools/render_frame_devtools_agent_host.cc:834: mojo::MakeRequest(&wake_lock_); ...
8 months, 1 week ago (2017-05-19 19:15:45 UTC) #15
ke.he
https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode834 content/browser/devtools/render_frame_devtools_agent_host.cc:834: mojo::MakeRequest(&wake_lock_); On 2017/05/19 19:15:45, dgozman wrote: > On 2017/05/18 ...
8 months, 1 week ago (2017-05-20 01:00:34 UTC) #16
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/2893793003/20001
8 months ago (2017-05-23 07:08:40 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:20001) as https://chromium.googlesource.com/chromium/src/+/f6fd56037a18d025817064d21222bc078b081428
8 months ago (2017-05-23 08:02:43 UTC) #21
ke.he
8 months ago (2017-05-26 03:11:13 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtool...
File content/browser/devtools/render_frame_devtools_agent_host.cc (right):

https://codereview.chromium.org/2893793003/diff/20001/content/browser/devtool...
content/browser/devtools/render_frame_devtools_agent_host.cc:839:
device::mojom::WakeLockType::PreventAppSuspension,
Oh! The original PowerSaveBlocker type is "kPowerSaveBlockPreventDisplaySleep",
I mistakenly set it as "PreventAppSuspension" here!
I guess this is the reason mentioned in Issue 726290

Powered by Google App Engine
This is Rietveld 408576698