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

Issue 11377133: Customize user details in ash system bubble for public account mode (Closed)

Created:
8 years, 1 month ago by bartfab (slow)
Modified:
8 years ago
Reviewers:
msw, stevenjb, sky
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, tfarina, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Customize user details in ash system bubble for public account mode This CL customizes the user details shown at the top of the ash system bubble when logged into a public account. The regular display of user name and e-mail is replaced by a text that informs the user this is a public account and names the domain managing the account. The implementation follows the UI mock in the linked bug. BUG=152928 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170802

Patch Set 1 #

Total comments: 8

Patch Set 2 : Massively overhauled and redone implementation. #

Total comments: 46

Patch Set 3 : Comments addressed. #

Total comments: 1

Patch Set 4 : Rebased. #

Total comments: 4

Patch Set 5 : Comments addressed. #

Patch Set 6 : Per UI feedback, set custom border color on public account logout button. #

Total comments: 34

Patch Set 7 : Comments addressed. #

Patch Set 8 : Changed "managed by" to "owned by" as requested offline. #

Total comments: 2

Patch Set 9 : The consensus is that "managed by" is the better string after all. #

Patch Set 10 : Comments addressed. #

Patch Set 11 : Rebased. #

Patch Set 12 : Fix compilation on Windows. #

Patch Set 13 : Try to fix the Windows compile again :(. #

Patch Set 14 : Rebased. #

Patch Set 15 : Re-uploading to try and unstuck the CQ. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -188 lines) Patch
M ash/ash_strings.grd View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M ash/system/chromeos/network/tray_sms.cc View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -2 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M ash/system/tray/test_system_tray_delegate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M ash/system/tray/test_system_tray_delegate.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -0 lines 0 comments Download
M ash/system/tray/tray_constants.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M ash/system/tray/tray_constants.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -3 lines 0 comments Download
M ash/system/user/tray_user.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +447 lines, -162 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/chrome_pages.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/message_center/message_bubble_base.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M ui/message_center/message_center_bubble.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 4 chunks +9 lines, -2 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 5 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
bartfab (slow)
Hi Scott, Could you review the ash_strings.grd, chrome/browser/ui and ui/views changes? Hi Steven, Could you ...
8 years, 1 month ago (2012-11-13 15:26:16 UTC) #1
sky
https://chromiumcodereview.appspot.com/11377133/diff/1/ui/views/view_text_utils.cc File ui/views/view_text_utils.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/1/ui/views/view_text_utils.cc#newcode20 ui/views/view_text_utils.cc:20: void DrawTextAndPositionUrl(gfx::Canvas* canvas, A method named DrawText should get ...
8 years, 1 month ago (2012-11-13 17:47:00 UTC) #2
bartfab (slow)
https://chromiumcodereview.appspot.com/11377133/diff/1/ui/views/view_text_utils.cc File ui/views/view_text_utils.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/1/ui/views/view_text_utils.cc#newcode20 ui/views/view_text_utils.cc:20: void DrawTextAndPositionUrl(gfx::Canvas* canvas, Because I need a way to ...
8 years, 1 month ago (2012-11-13 17:51:24 UTC) #3
sky
Ok, you need to update the comments accordingly then.
8 years, 1 month ago (2012-11-13 17:56:50 UTC) #4
stevenjb
http://codereview.chromium.org/11377133/diff/1/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): http://codereview.chromium.org/11377133/diff/1/ash/system/user/tray_user.cc#newcode186 ash/system/user/tray_user.cc:186: kPublicAccountUserCardTextColor, false)); This seems like something that ought to ...
8 years, 1 month ago (2012-11-13 20:54:22 UTC) #5
bartfab (slow)
https://chromiumcodereview.appspot.com/11377133/diff/1/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/1/ash/system/user/tray_user.cc#newcode186 ash/system/user/tray_user.cc:186: kPublicAccountUserCardTextColor, false)); On 2012/11/13 20:54:22, stevenjb (chromium) wrote: > ...
8 years, 1 month ago (2012-11-16 19:59:15 UTC) #6
bartfab (slow)
Hi Mike, I added you as a reviewer for the tray_bubble_view.* changes. Hi everyone else, ...
8 years, 1 month ago (2012-11-16 20:01:32 UTC) #7
stevenjb
https://chromiumcodereview.appspot.com/11377133/diff/10001/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/10001/ash/system/user/tray_user.cc#newcode214 ash/system/user/tray_user.cc:214: display_name_markers.push(0); This is confusing. It looks like this means ...
8 years, 1 month ago (2012-11-16 21:13:52 UTC) #8
msw
I suggest pushing back on the UI here, it's a lot of complicated impl that's ...
8 years, 1 month ago (2012-11-16 22:29:32 UTC) #9
bartfab (slow)
On 2012/11/16 22:29:32, msw wrote: > I suggest pushing back on the UI here, it's ...
8 years, 1 month ago (2012-11-19 17:33:15 UTC) #10
bartfab (slow)
https://chromiumcodereview.appspot.com/11377133/diff/10001/ash/ash_strings.grd File ash/ash_strings.grd (right): https://chromiumcodereview.appspot.com/11377133/diff/10001/ash/ash_strings.grd#newcode238 ash/ash_strings.grd:238: <message name="IDS_ASH_STATUS_TRAY_PUBLIC_LEARN_MORE" desc="Text of the Learn more link shown ...
8 years, 1 month ago (2012-11-19 17:34:06 UTC) #11
bartfab (slow)
https://chromiumcodereview.appspot.com/11377133/diff/11015/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/11015/ash/system/user/tray_user.cc#newcode503 ash/system/user/tray_user.cc:503: email->SetElideBehavior(views::Label::ELIDE_AS_EMAIL); I changed this back because it introduced a ...
8 years, 1 month ago (2012-11-19 18:18:05 UTC) #12
stevenjb
https://chromiumcodereview.appspot.com/11377133/diff/19001/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/19001/ash/system/user/tray_user.cc#newcode221 ash/system/user/tray_user.cc:221: ReplaceChars(display_name, kDisplayNameMark, string16(), &display_name); Wouldn't RemoveChars work here and ...
8 years, 1 month ago (2012-11-19 18:36:53 UTC) #13
bartfab (slow)
https://chromiumcodereview.appspot.com/11377133/diff/19001/ash/system/user/tray_user.cc File ash/system/user/tray_user.cc (right): https://chromiumcodereview.appspot.com/11377133/diff/19001/ash/system/user/tray_user.cc#newcode221 ash/system/user/tray_user.cc:221: ReplaceChars(display_name, kDisplayNameMark, string16(), &display_name); On 2012/11/19 18:36:53, stevenjb (chromium) ...
8 years, 1 month ago (2012-11-19 18:44:08 UTC) #14
stevenjb
lgtm
8 years ago (2012-11-27 01:23:10 UTC) #15
bartfab (slow)
Hi Scott, Review ping for ash/ash_strings.grd and chrome/browser/ui/chrome_pages.* Hi Mike, Review ping for ui/views/bubble/tray_bubble_view.*
8 years ago (2012-11-28 19:24:50 UTC) #16
sky
LGTM
8 years ago (2012-11-28 22:08:03 UTC) #17
msw
If you don't mind, please don't delete the original inline comments from your inline responses, ...
8 years ago (2012-11-29 01:14:10 UTC) #18
bartfab (slow)
Sorry if I managed to delete the quote when replying to a comment somewhere - ...
8 years ago (2012-11-29 16:28:58 UTC) #19
msw
LGTM with nits. Tests for the text layout would be nice, as I still think ...
8 years ago (2012-11-29 18:37:46 UTC) #20
bartfab (slow)
Ah yes, the external struggle between feature work and proper testing. I need to land ...
8 years ago (2012-11-29 19:15:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/13008
8 years ago (2012-11-29 19:17:38 UTC) #22
commit-bot: I haz the power
Failed to apply patch for ash/system/tray/test_system_tray_delegate.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-11-29 19:17:44 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/10028
8 years ago (2012-11-29 19:34:05 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-29 20:18:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/10028
8 years ago (2012-11-29 22:38:51 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-29 23:15:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/10030
8 years ago (2012-11-30 09:32:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/7009
8 years ago (2012-12-03 09:20:15 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) interactive_ui_tests
8 years ago (2012-12-03 11:41:35 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/7009
8 years ago (2012-12-03 11:50:30 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) ash_unittests
8 years ago (2012-12-03 12:27:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/7009
8 years ago (2012-12-03 13:35:36 UTC) #33
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) ash_unittests
8 years ago (2012-12-03 14:12:43 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/7009
8 years ago (2012-12-03 14:58:38 UTC) #35
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) ash_unittests
8 years ago (2012-12-03 15:46:52 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/24019
8 years ago (2012-12-03 16:16:19 UTC) #37
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-03 17:39:18 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/24019
8 years ago (2012-12-03 17:54:15 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11377133/24019
8 years ago (2012-12-03 18:49:44 UTC) #40
commit-bot: I haz the power
8 years ago (2012-12-03 20:31:10 UTC) #41
Message was sent while issue was closed.
Change committed as 170802

Powered by Google App Engine
This is Rietveld 408576698