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

Issue 116983008: chromeos: Don't send empty power management policies. (Closed)

Created:
6 years, 11 months ago by Daniel Erat
Modified:
6 years, 11 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

chromeos: Don't send empty power management policies. Update PowerPolicyController to not send an empty policy to powerd when Chrome starts or exits. Empty policies were originally sent to ensure the system wouldn't be stuck with an old policy, but they also mean that powerd could briefly revert to its default settings with undesireable results when the system first boots or the user logs out (e.g. an enterprise policy has disabled the lid-closed action, but powerd reverts to its default settings and shuts down automatically when the user logs out). BUG=329930 TBR=benwells@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243566

Patch Set 1 #

Patch Set 2 : update PowerPrefs tests #

Patch Set 3 : update PowerPolicyTest #

Patch Set 4 : don't crash in d'tor if uninitialized #

Total comments: 2

Patch Set 5 : rename getters #

Patch Set 6 : throw the rietveld dice again :-( #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -104 lines) Patch
M chrome/browser/apps/app_browsertest.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/power_policy_browsertest.cc View 1 2 3 4 4 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/power/power_prefs.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/power/power_prefs_unittest.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc View 1 2 3 4 6 chunks +8 lines, -8 lines 0 comments Download
M chromeos/dbus/fake_power_manager_client.h View 1 2 3 4 3 chunks +19 lines, -9 lines 0 comments Download
M chromeos/dbus/fake_power_manager_client.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M chromeos/dbus/power_policy_controller.h View 5 chunks +2 lines, -15 lines 0 comments Download
M chromeos/dbus/power_policy_controller.cc View 1 2 3 4 chunks +6 lines, -32 lines 0 comments Download
M chromeos/dbus/power_policy_controller_unittest.cc View 1 2 3 4 8 chunks +18 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Daniel Erat
6 years, 11 months ago (2014-01-02 22:17:10 UTC) #1
bartfab (slow)
lgtm https://codereview.chromium.org/116983008/diff/100001/chromeos/dbus/fake_power_manager_client.h File chromeos/dbus/fake_power_manager_client.h (right): https://codereview.chromium.org/116983008/diff/100001/chromeos/dbus/fake_power_manager_client.h#newcode31 chromeos/dbus/fake_power_manager_client.h:31: int set_policy_call_count() const { Nit: I know this ...
6 years, 11 months ago (2014-01-07 16:08:08 UTC) #2
Daniel Erat
https://codereview.chromium.org/116983008/diff/100001/chromeos/dbus/fake_power_manager_client.h File chromeos/dbus/fake_power_manager_client.h (right): https://codereview.chromium.org/116983008/diff/100001/chromeos/dbus/fake_power_manager_client.h#newcode31 chromeos/dbus/fake_power_manager_client.h:31: int set_policy_call_count() const { On 2014/01/07 16:08:08, bartfab wrote: ...
6 years, 11 months ago (2014-01-07 17:25:47 UTC) #3
Daniel Erat
TBR Ben for method call renaming in chrome/browser/apps.
6 years, 11 months ago (2014-01-07 17:31:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/116983008/240001
6 years, 11 months ago (2014-01-07 17:31:50 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=242520
6 years, 11 months ago (2014-01-07 20:14:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/116983008/240001
6 years, 11 months ago (2014-01-07 20:34:45 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=242736
6 years, 11 months ago (2014-01-08 00:22:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/116983008/240001
6 years, 11 months ago (2014-01-08 00:29:46 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=242992
6 years, 11 months ago (2014-01-08 04:51:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/116983008/240001
6 years, 11 months ago (2014-01-08 14:11:36 UTC) #11
commit-bot: I haz the power
Change committed as 243566
6 years, 11 months ago (2014-01-08 15:36:11 UTC) #12
Noam Samuel
6 years, 11 months ago (2014-01-08 20:00:30 UTC) #13
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/129193002/ by noamsml@chromium.org.

The reason for reverting is: ChromeOS bot failures on x86/amd64.

Powered by Google App Engine
This is Rietveld 408576698