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

Issue 210903003: Implemented system tray UI for new account management. (Closed)

Created:
6 years, 9 months ago by dzhioev (left Google)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Implemented system tray UI for new account management. * Added new mode in TrayUser for the case when new account management is enabled (--new-profile-management flag). In fact TrayUser is now supporting four different modes, depending of states of |multi-profiles| flag and |new-profile-management| flag. * Massive refactoring were made in tray_user.cc to isolate UserCardView creation in separate class and make code more clear. * UI for the cases when new account management is disabled remained without changes. Known issues: * There are no tests for new UI. Hopefully old UI is covered by tests already. * New UI is not accessible yet. * Stub implementation of UserAccountsDelegate is used for backend. BUG=344844 TEST=manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262959

Patch Set 1 #

Patch Set 2 : Fixed windows compilation. #

Total comments: 16

Patch Set 3 : Comments addressed. #

Total comments: 26

Patch Set 4 : More comments addressed. #

Total comments: 25

Patch Set 5 : tray_user.cc splitted into several smaller files. #

Patch Set 6 : Comments addressed. #

Patch Set 7 : Misprint fixed. #

Patch Set 8 : Comments addressed. #

Patch Set 9 : Merge conflicts resolved. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2014 lines, -1099 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M ash/ash_strings.grd View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M ash/session_state_delegate.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ash/session_state_delegate_stub.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/session_state_delegate_stub.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/bluetooth/tray_bluetooth.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/chromeos/label_tray_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ash/system/drive/tray_drive.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M ash/system/ime/tray_ime.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/tray/hover_highlight_view.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M ash/system/tray/hover_highlight_view.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -10 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M ash/system/tray/tray_constants.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M ash/system/tray/tray_constants.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ash/system/tray/tray_details_view.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -13 lines 0 comments Download
A ash/system/user/accounts_detailed_view.h View 1 2 3 4 5 6 7 8 1 chunk +70 lines, -0 lines 0 comments Download
A ash/system/user/accounts_detailed_view.cc View 1 2 3 4 5 6 7 8 1 chunk +227 lines, -0 lines 0 comments Download
A ash/system/user/button_from_view.h View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A ash/system/user/button_from_view.cc View 1 2 3 4 5 6 7 8 1 chunk +71 lines, -0 lines 0 comments Download
A ash/system/user/config.h View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
A ash/system/user/config.cc View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
A ash/system/user/rounded_image_view.h View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A ash/system/user/rounded_image_view.cc View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -0 lines 0 comments Download
M ash/system/user/tray_user.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 5 6 7 8 7 chunks +16 lines, -1069 lines 0 comments Download
A ash/system/user/user_accounts_delegate.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A ash/system/user/user_accounts_delegate.cc View 1 chunk +27 lines, -0 lines 0 comments Download
A ash/system/user/user_card_view.h View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -0 lines 0 comments Download
A ash/system/user/user_card_view.cc View 1 2 3 4 5 6 7 8 1 chunk +382 lines, -0 lines 0 comments Download
A ash/system/user/user_view.h View 1 2 3 4 5 6 7 8 1 chunk +94 lines, -0 lines 0 comments Download
A ash/system/user/user_view.cc View 1 2 3 4 5 6 7 8 1 chunk +490 lines, -0 lines 0 comments Download
M ash/test/test_session_state_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/test/test_session_state_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_chromeos.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_chromeos.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_views.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_views.cc View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/stub_user_accounts_delegate.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/stub_user_accounts_delegate.cc View 1 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_win.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
dzhioev (left Google)
Hi, please review. Here are mocks: https://folio.googleplex.com/chrome-ux/mocks/201-cros-mirror and video with current implementation: https://drive.google.com/a/google.com/file/d/0B7oEo_ZXZsklSDZ2UGFxXzRHeW8/edit?usp=sharing Thanks.
6 years, 9 months ago (2014-03-25 13:42:40 UTC) #1
Mr4D (OOO till 08-26)
Is this supposed to go into M35? If so - is there any way to ...
6 years, 9 months ago (2014-03-25 14:11:48 UTC) #2
Mr4D (OOO till 08-26)
Never mind the flag. I should have read your comment. But is this supposed to ...
6 years, 9 months ago (2014-03-25 14:12:35 UTC) #3
Mr4D (OOO till 08-26)
Will look more tonight, but send this already now. https://codereview.chromium.org/210903003/diff/20001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/210903003/diff/20001/ash/ash_strings.grd#newcode626 ash/ash_strings.grd:626: ...
6 years, 9 months ago (2014-03-25 23:54:12 UTC) #4
dzhioev (left Google)
https://codereview.chromium.org/210903003/diff/20001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://codereview.chromium.org/210903003/diff/20001/ash/ash_strings.grd#newcode626 ash/ash_strings.grd:626: <message name="IDS_ASH_STATUS_TRAY_ACCOUNTS_TITLE" desc="The label used in the footer of ...
6 years, 9 months ago (2014-03-26 13:29:21 UTC) #5
Mr4D (OOO till 08-26)
I would strongly suggest to not land this before we have branched. The existing code ...
6 years, 9 months ago (2014-03-26 16:49:53 UTC) #6
dzhioev (left Google)
https://codereview.chromium.org/210903003/diff/20001/ash/system/tray/hover_highlight_view.cc File ash/system/tray/hover_highlight_view.cc (right): https://codereview.chromium.org/210903003/diff/20001/ash/system/tray/hover_highlight_view.cc#newcode74 ash/system/tray/hover_highlight_view.cc:74: if (alignment != gfx::ALIGN_CENTER) { On 2014/03/26 16:49:53, Mr4D ...
6 years, 9 months ago (2014-03-26 23:48:51 UTC) #7
dzhioev (left Google)
On 2014/03/26 16:49:53, Mr4D wrote: > I would strongly suggest to not land this before ...
6 years, 9 months ago (2014-03-26 23:50:06 UTC) #8
Mr4D (OOO till 08-26)
lgtm https://codereview.chromium.org/210903003/diff/150001/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): https://codereview.chromium.org/210903003/diff/150001/ash/system/user/tray_user.cc#newcode168 ash/system/user/tray_user.cc:168: bool IsUserSessionBlocked() { Please add a comment here ...
6 years, 8 months ago (2014-03-30 23:38:25 UTC) #9
oshima
https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h#newcode75 ash/shell_delegate.h:75: // Returns true if new account management is enabled. ...
6 years, 8 months ago (2014-03-31 23:07:52 UTC) #10
oshima
https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h#newcode75 ash/shell_delegate.h:75: // Returns true if new account management is enabled. ...
6 years, 8 months ago (2014-04-01 00:30:43 UTC) #11
dzhioev (left Google)
Please review. I've split huge file tray_user.cc into several smaller files. https://codereview.chromium.org/210903003/diff/150001/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): ...
6 years, 8 months ago (2014-04-01 17:25:01 UTC) #12
oshima
https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h#newcode75 ash/shell_delegate.h:75: // Returns true if new account management is enabled. ...
6 years, 8 months ago (2014-04-02 00:14:13 UTC) #13
dzhioev (left Google)
https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h File ash/shell_delegate.h (right): https://codereview.chromium.org/210903003/diff/150001/ash/shell_delegate.h#newcode75 ash/shell_delegate.h:75: // Returns true if new account management is enabled. ...
6 years, 8 months ago (2014-04-09 16:31:38 UTC) #14
oshima
thanks! lgtm
6 years, 8 months ago (2014-04-09 17:22:41 UTC) #15
dzhioev (left Google)
The CQ bit was checked by dzhioev@chromium.org
6 years, 8 months ago (2014-04-09 17:42:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dzhioev@chromium.org/210903003/230001
6 years, 8 months ago (2014-04-09 17:42:31 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 17:42:43 UTC) #18
commit-bot: I haz the power
Failed to apply patch for ash/system/audio/volume_view.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-09 17:42:44 UTC) #19
dzhioev (left Google)
The CQ bit was checked by dzhioev@chromium.org
6 years, 8 months ago (2014-04-10 07:07:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dzhioev@chromium.org/210903003/240001
6 years, 8 months ago (2014-04-10 07:07:09 UTC) #21
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 13:17:20 UTC) #22
Message was sent while issue was closed.
Change committed as 262959

Powered by Google App Engine
This is Rietveld 408576698