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

Issue 2377703003: Support SystemTrayDelegate::ShowPowerSettings() in mustash (Closed)

Created:
4 years, 2 months ago by James Cook
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, msw, michaelpg
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support SystemTrayDelegate::ShowPowerSettings() in mustash * Wire through SystemTrayDelegateMus -> mojom::SystemTrayClient -> SystemTrayCommon * To avoid ash dependencies in SystemTrayCommon, check for a battery in the //ash code, which has access to ash::PowerStatus * Remove the check for the --enable-power-overlay switch, since this code is only triggered from DualRoleNotification in ash, which only occurs on a real device BUG=644348, 647412 TEST=manual, change the code to call ShowPowerSettings when clicking on the tray date and observe that power settings opens Committed: https://crrev.com/d2de27ad565eae8ca5e3c61cc055ecb34e4e1b3f Cr-Commit-Position: refs/heads/master@{#421923}

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase #

Patch Set 3 : Remove if #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M ash/mus/system_tray_delegate_mus.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/public/interfaces/system_tray.mojom View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_common.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_common.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 chunk +1 line, -8 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
James Cook
michaelpg, please take a look. If you need mustash background, see go/mustash-intro and go/mustash-ui. (I'll ...
4 years, 2 months ago (2016-09-27 23:23:13 UTC) #4
James Cook
Ping michaelpg? Sorry to bug you, but I've got a couple patches stacked up behind ...
4 years, 2 months ago (2016-09-28 21:56:10 UTC) #7
michaelpg
https://codereview.chromium.org/2377703003/diff/1/ash/common/system/chromeos/power/dual_role_notification.cc File ash/common/system/chromeos/power/dual_role_notification.cc (right): https://codereview.chromium.org/2377703003/diff/1/ash/common/system/chromeos/power/dual_role_notification.cc#newcode40 ash/common/system/chromeos/power/dual_role_notification.cc:40: if (PowerStatus::Get()->IsBatteryPresent()) On 2016/09/27 23:23:13, James Cook wrote: > ...
4 years, 2 months ago (2016-09-28 23:09:15 UTC) #8
James Cook
https://codereview.chromium.org/2377703003/diff/1/ash/common/system/chromeos/power/dual_role_notification.cc File ash/common/system/chromeos/power/dual_role_notification.cc (right): https://codereview.chromium.org/2377703003/diff/1/ash/common/system/chromeos/power/dual_role_notification.cc#newcode40 ash/common/system/chromeos/power/dual_role_notification.cc:40: if (PowerStatus::Get()->IsBatteryPresent()) On 2016/09/28 23:09:15, michaelpg wrote: > On ...
4 years, 2 months ago (2016-09-29 15:28:29 UTC) #9
michaelpg
lgtm https://codereview.chromium.org/2377703003/diff/1/ash/mus/system_tray_delegate_mus.cc File ash/mus/system_tray_delegate_mus.cc (right): https://codereview.chromium.org/2377703003/diff/1/ash/mus/system_tray_delegate_mus.cc#newcode82 ash/mus/system_tray_delegate_mus.cc:82: ConnectToSystemTrayClient()->ShowPowerSettings(); On 2016/09/29 15:28:29, James Cook wrote: > ...
4 years, 2 months ago (2016-09-29 17:00:51 UTC) #10
James Cook
I think I'll land this first, as it will give me another way to test ...
4 years, 2 months ago (2016-09-29 18:30:40 UTC) #11
James Cook
tsepez, can you look at //ash/public/interfaces/system_tray.mojom ?
4 years, 2 months ago (2016-09-29 18:31:08 UTC) #13
Tom Sepez
lgtm
4 years, 2 months ago (2016-09-29 18:33:26 UTC) #14
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/2377703003/40001
4 years, 2 months ago (2016-09-29 19:15:50 UTC) #16
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/269865)
4 years, 2 months ago (2016-09-29 19:25:31 UTC) #18
James Cook
msw, can I get OWNERS for c/b/ui/ash ?
4 years, 2 months ago (2016-09-29 19:27:58 UTC) #20
msw
lgtm
4 years, 2 months ago (2016-09-29 20:22:36 UTC) #21
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/2377703003/40001
4 years, 2 months ago (2016-09-29 20:24:59 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-29 20:31:30 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 20:33:45 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d2de27ad565eae8ca5e3c61cc055ecb34e4e1b3f
Cr-Commit-Position: refs/heads/master@{#421923}

Powered by Google App Engine
This is Rietveld 408576698