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

Issue 2780963002: ash: Fix system tray avatar not updated regression (Closed)

Created:
3 years, 8 months ago by xiyuan
Modified:
3 years, 8 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Fix system tray avatar not updated regression This is caused by racing between mojo and non-mojo code path. The avater image is updated via SessionController mojo interface but UserObserver interface is still a direct call and could reach ash before the mojo message. The CL fixes the issue by replacing UserObserver interface with SessionController observer. BUG=704862 Review-Url: https://codereview.chromium.org/2780963002 Cr-Commit-Position: refs/heads/master@{#460571} Committed: https://chromium.googlesource.com/chromium/src/+/d24a096f2db3e68da5d48df57a75cf643da1e178

Patch Set 1 #

Total comments: 5

Patch Set 2 : add a test #

Total comments: 3

Patch Set 3 : resized_ -> resized_image_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -115 lines) Patch
M ash/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/session/session_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/session/session_state_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.h View 3 chunks +0 lines, -8 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.cc View 2 chunks +0 lines, -19 lines 0 comments Download
M ash/common/system/user/rounded_image_view.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M ash/common/system/user/rounded_image_view.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M ash/common/system/user/tray_user.h View 1 4 chunks +14 lines, -10 lines 0 comments Download
M ash/common/system/user/tray_user.cc View 1 4 chunks +11 lines, -15 lines 0 comments Download
M ash/common/system/user/tray_user_unittest.cc View 1 4 chunks +32 lines, -0 lines 0 comments Download
D ash/common/system/user/user_observer.h View 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 6 chunks +0 lines, -20 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
xiyuan
Take your time. :)
3 years, 8 months ago (2017-03-28 23:11:36 UTC) #4
James Cook
Code looks good, but can you add a test that changes the avatar image for ...
3 years, 8 months ago (2017-03-29 00:51:23 UTC) #7
xiyuan
Added a simple test to verify SessonController update reaches TrayUser. https://codereview.chromium.org/2780963002/diff/1/ash/common/system/user/tray_user.cc File ash/common/system/user/tray_user.cc (right): https://codereview.chromium.org/2780963002/diff/1/ash/common/system/user/tray_user.cc#newcode11 ...
3 years, 8 months ago (2017-03-29 20:45:30 UTC) #10
James Cook
LGTM https://codereview.chromium.org/2780963002/diff/20001/ash/common/system/user/rounded_image_view.h File ash/common/system/user/rounded_image_view.h (right): https://codereview.chromium.org/2780963002/diff/20001/ash/common/system/user/rounded_image_view.h#newcode42 ash/common/system/user/rounded_image_view.h:42: gfx::ImageSkia resized_; optional: This might be a little ...
3 years, 8 months ago (2017-03-29 20:55:20 UTC) #11
xiyuan
https://codereview.chromium.org/2780963002/diff/20001/ash/common/system/user/rounded_image_view.h File ash/common/system/user/rounded_image_view.h (right): https://codereview.chromium.org/2780963002/diff/20001/ash/common/system/user/rounded_image_view.h#newcode42 ash/common/system/user/rounded_image_view.h:42: gfx::ImageSkia resized_; On 2017/03/29 20:55:20, James Cook wrote: > ...
3 years, 8 months ago (2017-03-29 21:02:43 UTC) #12
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/2780963002/40001
3 years, 8 months ago (2017-03-29 21:03:47 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 23:22:11 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d24a096f2db3e68da5d48df57a75...

Powered by Google App Engine
This is Rietveld 408576698