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

Issue 114143002: [Mac] Account management view for the new avatar bubble. (Closed)

Created:
7 years ago by noms (inactive)
Modified:
6 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Account management view for the new avatar bubble. This also adds the inline sign-in views to the bubble. Screenshot: https://drive.google.com/file/d/0B1B1Up4p2NRMbGRkQ3FpWFZweVU/edit?usp=sharing BUG=324036 TEST=Start Chrome with --new-profile-management and --enable-inline-sign-in flags. For a local profile, click on the avatar button and press the "Sign in to Chromium" link from the avatar bubble. This should display an inline sign-in view inside the bubble. For a signed in profile, press the "Manage accounts" link. This should show you the email accounts linked to this profile. Clicking the big "add account" button should show you the inline sign-in view embedded in the bubble. Once an email has been added, the account management view should refresh and display this new email account. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243193

Patch Set 1 : #

Total comments: 23

Patch Set 2 : alexei comments #

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : moar alexei comments #

Total comments: 8

Patch Set 5 : rebase #

Patch Set 6 : alexei comments #

Total comments: 2

Patch Set 7 : fix base:: compile errors #

Total comments: 6

Patch Set 8 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+519 lines, -106 lines) Patch
M chrome/browser/ui/cocoa/browser/profile_chooser_controller.h View 1 2 3 2 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm View 1 2 3 4 5 6 16 chunks +359 lines, -88 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm View 1 2 3 4 5 6 7 7 chunks +116 lines, -18 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
noms (inactive)
Hi Alexei, Here's another CL from the "new avatar bubble" series. This one adds a ...
7 years ago (2013-12-16 21:00:39 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h File chrome/browser/ui/cocoa/browser/profile_chooser_controller.h (right): https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h#newcode43 chrome/browser/ui/cocoa/browser/profile_chooser_controller.h:43: scoped_ptr<ProfileChooserControllerInternal::Observer> observer_; Can this be scoped_ptr<OAuth2TokenService::Observer>? https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h#newcode51 chrome/browser/ui/cocoa/browser/profile_chooser_controller.h:51: // ...
7 years ago (2013-12-17 20:32:43 UTC) #2
noms (inactive)
https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h File chrome/browser/ui/cocoa/browser/profile_chooser_controller.h (right): https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h#newcode43 chrome/browser/ui/cocoa/browser/profile_chooser_controller.h:43: scoped_ptr<ProfileChooserControllerInternal::Observer> observer_; I actually want the observer to listen ...
7 years ago (2013-12-19 11:44:44 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h File chrome/browser/ui/cocoa/browser/profile_chooser_controller.h (right): https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h#newcode43 chrome/browser/ui/cocoa/browser/profile_chooser_controller.h:43: scoped_ptr<ProfileChooserControllerInternal::Observer> observer_; On 2013/12/19 11:44:44, Monica Dinculescu wrote: > ...
7 years ago (2013-12-19 21:01:01 UTC) #4
noms (inactive)
https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h File chrome/browser/ui/cocoa/browser/profile_chooser_controller.h (right): https://codereview.chromium.org/114143002/diff/60001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h#newcode43 chrome/browser/ui/cocoa/browser/profile_chooser_controller.h:43: scoped_ptr<ProfileChooserControllerInternal::Observer> observer_; Bridge! I love it. Done. On 2013/12/19 ...
7 years ago (2013-12-20 12:06:14 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/114143002/diff/140001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/114143002/diff/140001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode102 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:102: ActiveProfileObserverBridge(ProfileChooserController* controller) Nit: explicit https://codereview.chromium.org/114143002/diff/140001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode249 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:249: DCHECK_GT([sender tag], 0); ...
7 years ago (2013-12-20 21:34:13 UTC) #6
noms (inactive)
https://codereview.chromium.org/114143002/diff/140001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/114143002/diff/140001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode102 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:102: ActiveProfileObserverBridge(ProfileChooserController* controller) On 2013/12/20 21:34:14, asvitkine (OOO until Jan ...
6 years, 11 months ago (2014-01-06 15:53:05 UTC) #7
Alexei Svitkine (slow)
looks like more stuff moved to base:: namespace underneath you over the holidays, so you ...
6 years, 11 months ago (2014-01-06 16:02:59 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/114143002/diff/230001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/114143002/diff/230001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode601 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:601: if (primaryAccount != accounts[i]) { It occurs to me ...
6 years, 11 months ago (2014-01-06 16:14:32 UTC) #9
noms (inactive)
Yup, I had noticed the base:: changes as well. Fixed! https://codereview.chromium.org/114143002/diff/230001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/114143002/diff/230001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode601 ...
6 years, 11 months ago (2014-01-06 16:24:28 UTC) #10
Alexei Svitkine (slow)
Thanks! lgtm with nits https://codereview.chromium.org/114143002/diff/320001/chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm (right): https://codereview.chromium.org/114143002/diff/320001/chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm#newcode178 chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm:178: SetAuthenticatedUsername(kEmail); Nit: Indentation is off. ...
6 years, 11 months ago (2014-01-06 16:34:58 UTC) #11
noms (inactive)
Woohoo, thanks! This CL spanned two years. :) https://codereview.chromium.org/114143002/diff/320001/chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm (right): https://codereview.chromium.org/114143002/diff/320001/chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm#newcode178 chrome/browser/ui/cocoa/browser/profile_chooser_controller_unittest.mm:178: SetAuthenticatedUsername(kEmail); ...
6 years, 11 months ago (2014-01-06 17:48:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/114143002/420001
6 years, 11 months ago (2014-01-06 17:49:09 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-06 23:07:02 UTC) #14
Message was sent while issue was closed.
Change committed as 243193

Powered by Google App Engine
This is Rietveld 408576698