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

Issue 102913002: [Mac] User manager should show up as a standalone window. (Closed)

Created:
7 years ago by noms (inactive)
Modified:
7 years ago
Reviewers:
groby-ooo-7-16, Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Mac] User manager should show up as a standalone window. BUG=324040 TEST=With the --new-profile-management flag on, start Chrome and click the avatar button. Select "View All Users". This should bring up the User Manager in a new, top-level window. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241336

Patch Set 1 : #

Total comments: 29

Patch Set 2 : rebase #

Patch Set 3 : rachel comments #

Total comments: 18

Patch Set 4 : rebase #

Patch Set 5 : rachel comments #

Total comments: 16

Patch Set 6 : rebase #

Patch Set 7 : upload error #

Patch Set 8 : fix bad rebase #

Patch Set 9 : nico comments + a wild test appears! #

Patch Set 10 : . #

Patch Set 11 : s/browser_test/unit_test/ #

Total comments: 2

Patch Set 12 : rebase #

Patch Set 13 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+378 lines, -43 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +44 lines, -38 lines 0 comments Download
A chrome/browser/ui/cocoa/browser/user_manager_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/task_manager_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ui/cocoa/user_manager_mac.h View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/user_manager_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +178 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_profile_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
noms (inactive)
Hi Rachel, I've made the user manager be a standalone window with a webview, as ...
7 years ago (2013-12-03 21:16:33 UTC) #1
noms (inactive)
https://codereview.chromium.org/102913002/diff/40001/chrome/browser/ui/cocoa/user_manager_mac.mm File chrome/browser/ui/cocoa/user_manager_mac.mm (right): https://codereview.chromium.org/102913002/diff/40001/chrome/browser/ui/cocoa/user_manager_mac.mm#newcode51 chrome/browser/ui/cocoa/user_manager_mac.mm:51: initWithContentRect:NSMakeRect(0, 0, kWindowWidth, kWindowHeight) I think this shouldn't be ...
7 years ago (2013-12-03 21:58:28 UTC) #2
groby-ooo-7-16
Youch. Did you just delete the patchset? All my comments vanished :(
7 years ago (2013-12-03 21:59:02 UTC) #3
noms (inactive)
:( I did. I was getting a lot of 500s cleaned up intermediary patchsets, assuming ...
7 years ago (2013-12-03 22:02:12 UTC) #4
groby-ooo-7-16
Many of the comments are about moving to a BrowserContextKeyedService. And then I realized you ...
7 years ago (2013-12-04 01:59:48 UTC) #5
noms (inactive)
Before I actually go in an address the comments, here's some general answers that might ...
7 years ago (2013-12-04 15:16:20 UTC) #6
groby-ooo-7-16
Thank you for the detailed explanation - that makes indeed a whole lot of sense, ...
7 years ago (2013-12-04 15:39:15 UTC) #7
noms (inactive)
I think I've addressed most of the comments, minus the one about the initial size ...
7 years ago (2013-12-05 17:55:06 UTC) #8
noms (inactive)
ping! :)
7 years ago (2013-12-09 15:19:06 UTC) #9
groby-ooo-7-16
Almost there - and once more, you need to summon the gods of Mac land ...
7 years ago (2013-12-10 00:41:06 UTC) #10
noms (inactive)
https://codereview.chromium.org/102913002/diff/80001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/102913002/diff/80001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode111 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:111: size_t active_index = avatarMenu_->GetActiveProfileIndex(); Correct. The buttons are drawn ...
7 years ago (2013-12-10 15:41:35 UTC) #11
noms (inactive)
Hi Nico, This CL implements the user manager view (already happily running on Windows) as ...
7 years ago (2013-12-10 15:48:09 UTC) #12
Nico
Sorry about the delay, I was out yesterday. Is there any test coverage for the ...
7 years ago (2013-12-12 18:05:40 UTC) #13
noms (inactive)
I think I've addressed all of the comments + added a (sadly, browser) test. Sorry ...
7 years ago (2013-12-12 22:59:23 UTC) #14
Nico
https://codereview.chromium.org/102913002/diff/120001/chrome/browser/ui/cocoa/user_manager_mac.mm File chrome/browser/ui/cocoa/user_manager_mac.mm (right): https://codereview.chromium.org/102913002/diff/120001/chrome/browser/ui/cocoa/user_manager_mac.mm#newcode157 chrome/browser/ui/cocoa/user_manager_mac.mm:157: instance_ = NULL; On 2013/12/12 22:59:23, Monica Dinculescu wrote: ...
7 years ago (2013-12-12 23:04:09 UTC) #15
noms (inactive)
The User Manager unfortunately does profile magic (needs to create a guest profile, and makes ...
7 years ago (2013-12-12 23:07:13 UTC) #16
groby-ooo-7-16
Hm. browser_command_controller_unittest.cc has an example how to build Guest TestingProfiles. TestingProfileManager and TestingBrowserProcess should give ...
7 years ago (2013-12-12 23:38:09 UTC) #17
noms (inactive)
Ah! I forgot about that, and I *just* wrote that test. Will give it a ...
7 years ago (2013-12-13 00:08:26 UTC) #18
noms (inactive)
I've converted the basic "can the user manager be shown" test to a unit test. ...
7 years ago (2013-12-13 20:58:32 UTC) #19
noms (inactive)
Nico: ping! :) On 2013/12/13 20:58:32, Monica Dinculescu wrote: > I've converted the basic "can ...
7 years ago (2013-12-16 20:31:04 UTC) #20
Nico
lgtm Sorry. https://codereview.chromium.org/102913002/diff/330001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/102913002/diff/330001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode97 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:97: - (NSButton*)makeLinkButtonWithTitle:(NSString*)title (nit: just "linkButtonWithTitle:…" is probably ...
7 years ago (2013-12-16 21:11:27 UTC) #21
Nico
On Mon, Dec 16, 2013 at 1:11 PM, <thakis@chromium.org> wrote: > lgtm > > Sorry. ...
7 years ago (2013-12-16 21:11:47 UTC) #22
noms (inactive)
Wooohoo thanks! Sending it over to the CQ. https://codereview.chromium.org/102913002/diff/330001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm File chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm (right): https://codereview.chromium.org/102913002/diff/330001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode97 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:97: - ...
7 years ago (2013-12-17 14:49:30 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/102913002/370001
7 years ago (2013-12-17 14:50:05 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=237193
7 years ago (2013-12-17 16:42:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/102913002/370001
7 years ago (2013-12-17 16:43:33 UTC) #26
Nico
https://codereview.chromium.org/102913002/diff/120001/chrome/browser/ui/cocoa/user_manager_mac.mm File chrome/browser/ui/cocoa/user_manager_mac.mm (right): https://codereview.chromium.org/102913002/diff/120001/chrome/browser/ui/cocoa/user_manager_mac.mm#newcode157 chrome/browser/ui/cocoa/user_manager_mac.mm:157: instance_ = NULL; On 2013/12/12 23:04:09, Nico wrote: > ...
7 years ago (2013-12-17 17:27:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/102913002/370001
7 years ago (2013-12-17 18:29:33 UTC) #28
commit-bot: I haz the power
7 years ago (2013-12-17 19:43:41 UTC) #29
Message was sent while issue was closed.
Change committed as 241336

Powered by Google App Engine
This is Rietveld 408576698