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

Issue 2558043006: ash: Use system tray mojo interface to show system update tray icon (Closed)

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

Description

ash: Use system tray mojo interface to show system update tray icon Change the flow so that Chrome explicitly asks ash to show the icon rather than having ash ask Chrome whether there is an update available. * Add ShowUpdateIcon to system_tray.mojom * Introduce update.mojom * Migrate ash to using ash::mojom::UpdateSeverity internally * Migrate update methods from SystemTrayDelegate to SystemTrayClient * Add a new SystemTrayClientTest and move existing Flash test there Also add docs for SystemTrayItem (used by TrayUpdate) since tray view vs. default view vs. detailed view always confuses me. BUG=647412 TEST=chrome browser_tests, ash_unittests Committed: https://crrev.com/196ee3b66b3700733cecb8472d63d872d99e3783 Cr-Commit-Position: refs/heads/master@{#438051}

Patch Set 1 #

Patch Set 2 : now it works #

Patch Set 3 : Make Flash updates yellow #

Total comments: 12

Patch Set 4 : Remove observer, make static #

Patch Set 5 : rebase #

Patch Set 6 : fix gcc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -317 lines) Patch
M ash/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/default_system_tray_delegate.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/default_system_tray_delegate.cc View 1 2 chunks +0 lines, -12 lines 0 comments Download
M ash/common/system/tray/system_tray.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/system/tray/system_tray.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/tray/system_tray_controller.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ash/common/system/tray/system_tray_controller.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 1 2 chunks +0 lines, -21 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 2 chunks +0 lines, -13 lines 0 comments Download
M ash/common/system/tray/system_tray_item.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.h View 1 2 3 4 chunks +4 lines, -8 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.cc View 1 2 3 2 chunks +0 lines, -14 lines 0 comments Download
M ash/common/system/tray/tray_image_item.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/common/system/update/tray_update.h View 1 2 3 2 chunks +22 lines, -5 lines 0 comments Download
M ash/common/system/update/tray_update.cc View 1 2 3 6 chunks +48 lines, -38 lines 0 comments Download
M ash/common/system/update/tray_update_unittest.cc View 1 2 3 2 chunks +6 lines, -12 lines 0 comments Download
M ash/common/system/update/update_observer.h View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/test/test_system_tray_delegate.cc View 1 2 chunks +0 lines, -8 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/interfaces/system_tray.mojom View 1 2 chunks +7 lines, -0 lines 0 comments Download
A ash/public/interfaces/update.mojom View 1 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.h View 1 4 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 1 2 3 4 5 7 chunks +61 lines, -9 lines 0 comments Download
A chrome/browser/ui/ash/system_tray_client_browsertest.cc View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 4 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 9 chunks +0 lines, -47 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc View 1 2 chunks +0 lines, -27 lines 0 comments Download
D chrome/browser/ui/ash/system_tray_delegate_utils.h View 1 1 chunk +0 lines, -17 lines 0 comments Download
D chrome/browser/ui/ash/system_tray_delegate_utils.cc View 1 1 chunk +0 lines, -36 lines 0 comments Download
M chrome/browser/upgrade_detector.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (23 generated)
James Cook
msw, please take a look at everything. Look closely, since we don't have great end-to-end ...
4 years ago (2016-12-09 22:34:13 UTC) #5
msw
This is a great Cl; lgtm with minor comments/nits. I'll gladly take another look if ...
4 years ago (2016-12-09 23:41:52 UTC) #6
James Cook
msw / kerrnel - please take another look. I nixed the observer. tsepez, please take ...
4 years ago (2016-12-12 18:15:12 UTC) #10
Greg K
On 2016/12/12 18:15:12, James Cook wrote: > msw / kerrnel - please take another look. ...
4 years ago (2016-12-12 18:57:19 UTC) #13
Tom Sepez
lgtm
4 years ago (2016-12-12 19:35:58 UTC) #14
msw
lgtm
4 years ago (2016-12-12 20:43:35 UTC) #15
James Cook
waffles, can I get an OWNERS stamp for chrome/browser/component_updater/pepper_flash_component_installer.cc ?
4 years ago (2016-12-12 20:52:49 UTC) #17
waffles
component_updater lgtm
4 years ago (2016-12-12 20:55:54 UTC) #18
James Cook
sky, can I get a rubber stamp for a FRIEND_TEST in chrome/browser/upgrade_detector.h ?
4 years ago (2016-12-12 22:27:16 UTC) #22
sky
LGTM
4 years ago (2016-12-13 01:44:11 UTC) #25
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/2558043006/100001
4 years ago (2016-12-13 03:26:10 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-13 04:11:26 UTC) #34
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/196ee3b66b3700733cecb8472d63d872d99e3783 Cr-Commit-Position: refs/heads/master@{#438051}
4 years ago (2016-12-13 04:13:53 UTC) #36
Yuta Kitamura
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2568413002/ by yutak@chromium.org. ...
4 years ago (2016-12-13 05:36:28 UTC) #37
James Cook
4 years ago (2016-12-13 17:04:47 UTC) #38
Message was sent while issue was closed.
On 2016/12/13 05:36:28, Yuta Kitamura wrote:
> A revert of this CL (patchset #6 id:100001) has been created in
> https://codereview.chromium.org/2568413002/ by mailto:yutak@chromium.org.
> 
> The reason for reverting is: Broke compile on Google Chrome ChromeOS:
> 
>
https://build.chromium.org/p/chromium.chrome/builders/Google%20Chrome%20Chrom...
> 
>
../../chrome/browser/component_updater/pepper_flash_component_installer.cc:94:3:
> error: no type named 'SystemTrayClient' in namespace 'chromeos'; did you mean
> simply 'SystemTrayClient'?
>   chromeos::SystemTrayClient* tray = chromeos::SystemTrayClient::Get();
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~
>   SystemTrayClient
> ../../chrome/browser/ui/ash/system_tray_client.h:27:7: note:
'SystemTrayClient'
> declared here
> class SystemTrayClient : public ash::mojom::SystemTrayClient,
>       ^
>
../../chrome/browser/component_updater/pepper_flash_component_installer.cc:94:38:
> error: no member named 'SystemTrayClient' in namespace 'chromeos'; did you
mean
> simply 'SystemTrayClient'?
>   chromeos::SystemTrayClient* tray = chromeos::SystemTrayClient::Get();
>                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
>                                      SystemTrayClient
> ../../chrome/browser/ui/ash/system_tray_client.h:27:7: note:
'SystemTrayClient'
> declared here
> class SystemTrayClient : public ash::mojom::SystemTrayClient,
>       ^
> 2 errors generated.
> .

Thanks for the revert. It looks like the section of component updater code I
touched is only compiled in the official build. I'll reland a separate CL.

Powered by Google App Engine
This is Rietveld 408576698