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

Issue 240343004: chromeos: Update IdleActionImminent and SuspendDone handling (Closed)

Created:
6 years, 8 months ago by Daniel Erat
Modified:
6 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, nkostylev+watch_chromium.org, derat+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, ben+ash_chromium.org
Visibility:
Public.

Description

chromeos: Update IdleActionImminent and SuspendDone handling IdleActionImminent signals sent by powerd now include the remaining time until the idle action will be performed; make PowerManagerClient decode it and pass it to observers. Also update PowerManagerClient to listen for SuspendDone signals rather than SuspendStateChanged; the latter is confusing and will be removed soon. Updates the system_api dependency to a9acc4df. BUG=287787, 359619 TBR=stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265058

Patch Set 1 #

Patch Set 2 : update indenting #

Patch Set 3 : fix typo #

Patch Set 4 : update logging #

Patch Set 5 : merge #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -101 lines) Patch
M ash/system/chromeos/power/power_event_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/power/power_event_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/power/power_event_observer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/extension_system_event_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/extension_system_event_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/mounted_disk_monitor.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/mounted_disk_monitor.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/mounted_disk_monitor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/chromeos/login/webui_screen_locker.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/webui_screen_locker.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/idle_action_warning_observer.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/power/idle_action_warning_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/power/power_data_collector.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/power_data_collector.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/power/power_data_collector_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_power_manager_client.h View 2 chunks +3 lines, -10 lines 2 comments Download
M chromeos/dbus/fake_power_manager_client.cc View 1 chunk +2 lines, -13 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 2 chunks +9 lines, -5 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 2 3 5 chunks +43 lines, -41 lines 3 comments Download
M chromeos/network/network_change_notifier_chromeos.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_change_notifier_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Daniel Erat
TBR stevenjb@ for rename in chromeos/network
6 years, 8 months ago (2014-04-16 20:28:53 UTC) #1
stevenjb
chromeos/network lgtm
6 years, 8 months ago (2014-04-16 21:42:29 UTC) #2
Daniel Erat
Bartosz: ping
6 years, 8 months ago (2014-04-18 13:17:07 UTC) #3
Daniel Erat
On 2014/04/18 13:17:07, Daniel Erat wrote: > Bartosz: ping Steven, do you mind doing a ...
6 years, 8 months ago (2014-04-21 13:49:57 UTC) #4
stevenjb
lgtm
6 years, 8 months ago (2014-04-21 16:47:32 UTC) #5
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 8 months ago (2014-04-21 17:29:03 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/240343004/70001
6 years, 8 months ago (2014-04-21 17:29:51 UTC) #7
commit-bot: I haz the power
Change committed as 265058
6 years, 8 months ago (2014-04-21 20:48:02 UTC) #8
bartfab (slow)
LGTM. Sorry for the delay - it was a 4-day weekend here. https://codereview.chromium.org/240343004/diff/70001/chromeos/dbus/fake_power_manager_client.h File chromeos/dbus/fake_power_manager_client.h ...
6 years, 8 months ago (2014-04-23 11:49:30 UTC) #9
Daniel Erat
uploaded https://codereview.chromium.org/249413002 to fix the nits https://codereview.chromium.org/240343004/diff/70001/chromeos/dbus/fake_power_manager_client.h File chromeos/dbus/fake_power_manager_client.h (right): https://codereview.chromium.org/240343004/diff/70001/chromeos/dbus/fake_power_manager_client.h#newcode12 chromeos/dbus/fake_power_manager_client.h:12: #include "base/time/time.h" On ...
6 years, 8 months ago (2014-04-23 14:35:33 UTC) #10
bartfab (slow)
6 years, 8 months ago (2014-04-23 14:50:22 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/240343004/diff/70001/chromeos/dbus/power_mana...
File chromeos/dbus/power_manager_client.cc (right):

https://codereview.chromium.org/240343004/diff/70001/chromeos/dbus/power_mana...
chromeos/dbus/power_manager_client.cc:506: proto.time_until_idle_action())));
On 2014/04/23 14:35:34, Daniel Erat wrote:
> On 2014/04/23 11:49:30, bartfab wrote:
> > Nit: This line should be indented four spaces from the start of the previous
> > line, not from the start of base::TimeDelta.
> 
> debatable unless the style guide has been updated or the chromium codebase has
> suddenly become way more consistent than it used to be, but done in any case.
> :-P

Neither of these is very likely. I guess I just like to pretend things are more
consistent than they really are :).

Powered by Google App Engine
This is Rietveld 408576698