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

Issue 2631153003: power save blocker: Don't try to block power saving in headless mode (Closed)

Created:
3 years, 11 months ago by Sami
Modified:
3 years, 11 months ago
Reviewers:
msw, hashimoto
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

power save blocker: Don't try to block power saving in headless mode When running headless mode, there's no need to block power saving as there is no available display server. This patch makes PowerSaveBlocker early-out in such a case (on X11). BUG=678948 Review-Url: https://codereview.chromium.org/2631153003 Cr-Commit-Position: refs/heads/master@{#444118} Committed: https://chromium.googlesource.com/chromium/src/+/28b1bf2e4e780f510109ca4b1d61e72f024232aa

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review comments #

Total comments: 4

Patch Set 3 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M device/power_save_blocker/BUILD.gn View 1 chunk +4 lines, -1 line 0 comments Download
M device/power_save_blocker/DEPS View 1 1 chunk +1 line, -1 line 0 comments Download
M device/power_save_blocker/power_save_blocker_x11.cc View 1 2 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
Sami
+hashimoto@ for OWNERs review and +msw@ for the new dep on ui/gfx. PTAL, thanks!
3 years, 11 months ago (2017-01-16 11:29:48 UTC) #4
hashimoto
https://codereview.chromium.org/2631153003/diff/1/device/power_save_blocker/DEPS File device/power_save_blocker/DEPS (right): https://codereview.chromium.org/2631153003/diff/1/device/power_save_blocker/DEPS#newcode5 device/power_save_blocker/DEPS:5: "+ui/gfx", ui/gfx/x is unneeded when you have ui/gfx. https://codereview.chromium.org/2631153003/diff/1/device/power_save_blocker/power_save_blocker_x11.cc ...
3 years, 11 months ago (2017-01-17 02:08:13 UTC) #9
Sami
Thanks! https://codereview.chromium.org/2631153003/diff/1/device/power_save_blocker/DEPS File device/power_save_blocker/DEPS (right): https://codereview.chromium.org/2631153003/diff/1/device/power_save_blocker/DEPS#newcode5 device/power_save_blocker/DEPS:5: "+ui/gfx", On 2017/01/17 02:08:12, hashimoto wrote: > ui/gfx/x ...
3 years, 11 months ago (2017-01-17 13:44:29 UTC) #10
hashimoto
Thanks, lgtm with requests. https://codereview.chromium.org/2631153003/diff/20001/device/power_save_blocker/power_save_blocker_x11.cc File device/power_save_blocker/power_save_blocker_x11.cc (right): https://codereview.chromium.org/2631153003/diff/20001/device/power_save_blocker/power_save_blocker_x11.cc#newcode440 device/power_save_blocker/power_save_blocker_x11.cc:440: if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kHeadless)) Please add a ...
3 years, 11 months ago (2017-01-17 15:28:33 UTC) #15
Sami
Thank you! https://codereview.chromium.org/2631153003/diff/20001/device/power_save_blocker/power_save_blocker_x11.cc File device/power_save_blocker/power_save_blocker_x11.cc (right): https://codereview.chromium.org/2631153003/diff/20001/device/power_save_blocker/power_save_blocker_x11.cc#newcode440 device/power_save_blocker/power_save_blocker_x11.cc:440: if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kHeadless)) On 2017/01/17 15:28:32, hashimoto wrote: ...
3 years, 11 months ago (2017-01-17 15:43:49 UTC) #16
hashimoto
lgtm++
3 years, 11 months ago (2017-01-17 16:18:26 UTC) #17
msw
expanded ui/gfx dependency lgtm
3 years, 11 months ago (2017-01-17 18:54:31 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/2631153003/40001
3 years, 11 months ago (2017-01-17 18:57:21 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 20:04:54 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/28b1bf2e4e780f510109ca4b1d61...

Powered by Google App Engine
This is Rietveld 408576698