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

Issue 303463010: [Mac] Show a warning in the new avatar button/menu if there's an auth error (Closed)

Created:
6 years, 6 months ago by noms (inactive)
Modified:
6 years, 6 months ago
Reviewers:
msw, groby-ooo-7-16
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Show a warning in the new avatar button/menu if there's an auth error. This error is shown both in the avatar button, and in the avatar menu. When the account for which we're displaying the auth error is clicked in the avatar menu, we show the Gaia reauth view. Screenshot: https://drive.google.com/file/d/0B1B1Up4p2NRMQW90VmcwcGZQVEU/edit?usp=sharing I've also fixed a bug where the available text for the account name was incorrectly calculated, and eliding overlapped the delete button. Screenshot: https://drive.google.com/file/d/0B1B1Up4p2NRMaU9DcWdqTVZNMVk/edit?usp=sharing BUG=311235 TEST= Sign into Chrome with the --new-profile-management flag on. Go to accounts.google.com and revoke Chrome's access to that account, from the Security tab. Try to bookmark the current page. The avatar button should be badged like in the attached screenshot. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277908

Patch Set 1 : #

Total comments: 36

Patch Set 2 : msw comments #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : fix warning icon location and account eliding #

Total comments: 29

Patch Set 6 : rachel comments and a sneaked in rebase (the IsSupervised() stuff) #

Total comments: 11

Patch Set 7 : rachel nits #

Patch Set 8 : rachel nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -47 lines) Patch
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm View 1 2 3 4 5 6 5 chunks +44 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm View 1 2 3 4 5 6 7 9 chunks +51 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 5 10 chunks +105 lines, -34 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
noms (inactive)
Hi Mike, Here is the Cocoa implementation of the auth errors, since you reviewed them ...
6 years, 6 months ago (2014-06-02 21:59:12 UTC) #1
msw
I'm not a Cocoa pro; for changes more complex than this, I'd appreciated first pass ...
6 years, 6 months ago (2014-06-03 04:15:31 UTC) #2
noms (inactive)
Mike: Ah, sorry, I had seen some reviews go by on my team where you ...
6 years, 6 months ago (2014-06-06 20:33:44 UTC) #3
msw
https://codereview.chromium.org/303463010/diff/120001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/303463010/diff/120001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode1535 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:1535: reauthRequired:errorAccountId == accounts[i]]; On 2014/06/06 20:33:44, Monica Dinculescu wrote: ...
6 years, 6 months ago (2014-06-09 19:02:38 UTC) #4
noms (inactive)
Rachel: ping! I've also updated the position of the warning icon since I last pinged ...
6 years, 6 months ago (2014-06-10 15:02:47 UTC) #5
msw
lgtm with a nit. Review from a Cocoa expert would still be nice. https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File ...
6 years, 6 months ago (2014-06-10 17:13:03 UTC) #6
groby-ooo-7-16
Incoming. Was OOO Fri/Mon
6 years, 6 months ago (2014-06-10 18:20:17 UTC) #7
groby-ooo-7-16
https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode58 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:58: base::scoped_nsobject<NSImage> authErrorImage_; authenticationErrorImage_, please. (This is Cocoa. Verbosity is ...
6 years, 6 months ago (2014-06-10 19:28:15 UTC) #8
noms (inactive)
https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode71 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:71: gfx::ImageSkia icon = gfx::ImageSkiaOperations::CreateResizedImage( Mike didn't want me to ...
6 years, 6 months ago (2014-06-11 15:12:46 UTC) #9
msw
https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode71 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:71: gfx::ImageSkia icon = gfx::ImageSkiaOperations::CreateResizedImage( On 2014/06/11 15:12:46, Monica Dinculescu ...
6 years, 6 months ago (2014-06-11 16:42:36 UTC) #10
groby-ooo-7-16
https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode71 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:71: gfx::ImageSkia icon = gfx::ImageSkiaOperations::CreateResizedImage( On 2014/06/11 16:42:36, msw wrote: ...
6 years, 6 months ago (2014-06-11 17:19:09 UTC) #11
msw
Feel free to proceed either way for the icon here and in you corresponding Views ...
6 years, 6 months ago (2014-06-11 17:33:59 UTC) #12
noms (inactive)
Woohoo! Now that the other CL of death is done with, I've addressed all-but-one of ...
6 years, 6 months ago (2014-06-17 17:07:33 UTC) #13
groby-ooo-7-16
LGTM w/ nits https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm (right): https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm#newcode36 chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm:36: - (void)updateAvatarButtonAndLayoutParent:(BOOL)layoutParent; nit: Please add a ...
6 years, 6 months ago (2014-06-17 17:13:27 UTC) #14
groby-ooo-7-16
https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode106 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:106: frame.origin.x - imageSize.width - kButtonTitleImageSpacing, On 2014/06/17 17:07:32, Monica ...
6 years, 6 months ago (2014-06-17 17:16:42 UTC) #15
noms (inactive)
https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm (right): https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm#newcode36 chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm:36: - (void)updateAvatarButtonAndLayoutParent:(BOOL)layoutParent; On 2014/06/17 17:13:27, groby wrote: > nit: ...
6 years, 6 months ago (2014-06-17 18:12:44 UTC) #16
groby-ooo-7-16
https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode144 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:144: authenticationErrorImage_.reset(nil); On 2014/06/17 18:12:44, Monica Dinculescu wrote: > Hmm, ...
6 years, 6 months ago (2014-06-17 18:20:27 UTC) #17
noms (inactive)
https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm File chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm (right): https://codereview.chromium.org/303463010/diff/260001/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm#newcode144 chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm:144: authenticationErrorImage_.reset(nil); OH, herp derp. I think I'm losing my ...
6 years, 6 months ago (2014-06-17 18:27:23 UTC) #18
groby-ooo-7-16
> OH, herp derp. I think I'm losing my mind. Common side effect of too ...
6 years, 6 months ago (2014-06-17 18:28:53 UTC) #19
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 6 months ago (2014-06-17 18:29:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/303463010/300001
6 years, 6 months ago (2014-06-17 18:32:10 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 23:52:51 UTC) #22
Message was sent while issue was closed.
Change committed as 277908

Powered by Google App Engine
This is Rietveld 408576698