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

Issue 199533004: [Mac, Win] Show a user manager tutorial once per profile. (Closed)

Created:
6 years, 9 months ago by noms (inactive)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, tfarina, arv+watch_chromium.org
Visibility:
Public.

Description

[Mac, Win] Show a user manager tutorial once per profile. This tutorial is only shown when the user explicitly brings up the user manager, and not, for example, as a result of locking the profile. This preference can be made syncable in the future. WebUI change: if there is only one pod, show the tutorial to the right side of the pod, rather than centered (which is how it is displayed for multiple pods). BUG=324052 TEST=Start Chrome with --new-profile-management enabled. Press "View all users". You should see the tutorial. Close the user manager and repeat the previous step. You shouldn't see the tutorial again. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258483

Patch Set 1 : #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : gab & nikita comments #

Total comments: 14

Patch Set 4 : rebase #

Total comments: 1

Patch Set 5 : much refactor. such change. #

Total comments: 19

Patch Set 6 : alexei comments #

Total comments: 4

Patch Set 7 : alexei nits #

Total comments: 4

Patch Set 8 : rachel nits #

Total comments: 21

Patch Set 9 : msw nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -147 lines) Patch
M chrome/browser/prefs/browser_prefs.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_window.h View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 1 2 3 4 5 6 7 8 3 chunks +71 lines, -0 lines 0 comments Download
M chrome/browser/resources/login/screen_container.css View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/resources/user_manager/user_manager_tutorial.css View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/user_manager/user_manager_tutorial.js View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 4 5 2 chunks +4 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 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/user_manager_mac_unittest.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/user_manager_mac.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/user_manager_mac.mm View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -37 lines 0 comments Download
M chrome/browser/ui/gtk/user_manager_gtk.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/user_manager_view.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/user_manager_view.cc View 1 2 3 4 5 6 chunks +17 lines, -33 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 2 chunks +17 lines, -12 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
noms (inactive)
Hi, I've added a profile preference to control when the user manager tutorial is shown. ...
6 years, 9 months ago (2014-03-14 15:50:58 UTC) #1
gab
https://codereview.chromium.org/199533004/diff/70001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/199533004/diff/70001/chrome/browser/prefs/browser_prefs.cc#newcode513 chrome/browser/prefs/browser_prefs.cc:513: registry->RegisterBooleanPref( The |registry| isn't typically invoked directly from this ...
6 years, 9 months ago (2014-03-14 16:43:57 UTC) #2
Nikita (slow)
c/b/resources/user_manager/* lgtm https://codereview.chromium.org/199533004/diff/70001/chrome/browser/resources/user_manager/user_manager_tutorial.js File chrome/browser/resources/user_manager/user_manager_tutorial.js (right): https://codereview.chromium.org/199533004/diff/70001/chrome/browser/resources/user_manager/user_manager_tutorial.js#newcode116 chrome/browser/resources/user_manager/user_manager_tutorial.js:116: $('inner-container').style.opacity = '0.4'; nit: Please define a ...
6 years, 9 months ago (2014-03-14 17:30:34 UTC) #3
noms (inactive)
Nikita & Gab: addressed your comments. https://codereview.chromium.org/199533004/diff/70001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/199533004/diff/70001/chrome/browser/prefs/browser_prefs.cc#newcode513 chrome/browser/prefs/browser_prefs.cc:513: registry->RegisterBooleanPref( Done. Moved ...
6 years, 9 months ago (2014-03-14 18:24:36 UTC) #4
gab
https://codereview.chromium.org/199533004/diff/80001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/199533004/diff/80001/chrome/browser/prefs/browser_prefs.cc#newcode432 chrome/browser/prefs/browser_prefs.cc:432: profiles::RegisterTutorialPrefs(registry); Typically this method is named RegisterProfilePrefs (see all ...
6 years, 9 months ago (2014-03-14 20:52:26 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/199533004/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/199533004/diff/80001/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm#newcode606 chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm:606: browser_->profile()->GetPrefs()->SetBoolean( Nit: Cache a pointer to the pref store ...
6 years, 9 months ago (2014-03-14 21:04:40 UTC) #6
Nikita (slow)
lgtm
6 years, 9 months ago (2014-03-17 12:22:15 UTC) #7
msw
Please make corresponding changes to the Views implementation when you address Alexei's Cocoa comments. https://codereview.chromium.org/199533004/diff/100001/chrome/browser/ui/views/profile_chooser_view.cc ...
6 years, 9 months ago (2014-03-17 19:06:18 UTC) #8
noms (inactive)
Alright. I've shifted and refactored a whole bunch of code around. Please take a look ...
6 years, 9 months ago (2014-03-17 21:52:22 UTC) #9
gab
chrome/browser/prefs/* and chrome/common/pref_names.* lgtm -- much better, thanks!
6 years, 9 months ago (2014-03-17 22:13:59 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc File chrome/browser/profiles/profile_window.cc (right): https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc#newcode123 chrome/browser/profiles/profile_window.cc:123: void OnUserManagerGuestProfileCreated( Add a comment. https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc#newcode138 chrome/browser/profiles/profile_window.cc:138: ProfileInfoCache& cache ...
6 years, 9 months ago (2014-03-18 15:50:32 UTC) #11
noms (inactive)
https://codereview.chromium.org/199533004/diff/180001/chrome/browser/ui/views/profile_chooser_view.cc File chrome/browser/ui/views/profile_chooser_view.cc (right): https://codereview.chromium.org/199533004/diff/180001/chrome/browser/ui/views/profile_chooser_view.cc#newcode536 chrome/browser/ui/views/profile_chooser_view.cc:536: profiles::USER_MANAGER_TUTORIAL_OVERVIEW); The problem with that is that ShowUserManager() can ...
6 years, 9 months ago (2014-03-18 17:39:08 UTC) #12
Alexei Svitkine (slow)
https://codereview.chromium.org/199533004/diff/180001/chrome/browser/ui/views/profile_chooser_view.cc File chrome/browser/ui/views/profile_chooser_view.cc (right): https://codereview.chromium.org/199533004/diff/180001/chrome/browser/ui/views/profile_chooser_view.cc#newcode536 chrome/browser/ui/views/profile_chooser_view.cc:536: profiles::USER_MANAGER_TUTORIAL_OVERVIEW); On 2014/03/18 17:39:09, Monica Dinculescu wrote: > The ...
6 years, 9 months ago (2014-03-18 17:45:40 UTC) #13
noms (inactive)
https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc File chrome/browser/profiles/profile_window.cc (right): https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc#newcode123 chrome/browser/profiles/profile_window.cc:123: void OnUserManagerGuestProfileCreated( On 2014/03/18 15:50:33, Alexei Svitkine wrote: > ...
6 years, 9 months ago (2014-03-19 15:58:19 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc File chrome/browser/profiles/profile_window.cc (right): https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.cc#newcode138 chrome/browser/profiles/profile_window.cc:138: ProfileInfoCache& cache = On 2014/03/19 15:58:20, Monica Dinculescu wrote: ...
6 years, 9 months ago (2014-03-19 16:37:00 UTC) #15
noms (inactive)
https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.h File chrome/browser/profiles/profile_window.h (right): https://codereview.chromium.org/199533004/diff/180001/chrome/browser/profiles/profile_window.h#newcode73 chrome/browser/profiles/profile_window.h:73: // user manager has been decided. On 2014/03/19 16:37:01, ...
6 years, 9 months ago (2014-03-19 17:10:37 UTC) #16
Alexei Svitkine (slow)
LGTM, thanks!
6 years, 9 months ago (2014-03-19 17:19:22 UTC) #17
noms (inactive)
+ Rachel for profiles owners review Mike: ping! :)
6 years, 9 months ago (2014-03-19 17:21:42 UTC) #18
rpetterson
profiles lgtm
6 years, 9 months ago (2014-03-19 17:58:49 UTC) #19
rpetterson
and a few nits :) https://codereview.chromium.org/199533004/diff/230001/chrome/browser/profiles/profile_window.h File chrome/browser/profiles/profile_window.h (right): https://codereview.chromium.org/199533004/diff/230001/chrome/browser/profiles/profile_window.h#newcode25 chrome/browser/profiles/profile_window.h:25: USER_MANAGER_TUTORIAL_LOCK // Not yet ...
6 years, 9 months ago (2014-03-19 17:59:01 UTC) #20
noms (inactive)
https://codereview.chromium.org/199533004/diff/230001/chrome/browser/profiles/profile_window.h File chrome/browser/profiles/profile_window.h (right): https://codereview.chromium.org/199533004/diff/230001/chrome/browser/profiles/profile_window.h#newcode25 chrome/browser/profiles/profile_window.h:25: USER_MANAGER_TUTORIAL_LOCK // Not yet implemented. On 2014/03/19 17:59:01, rpetterson ...
6 years, 9 months ago (2014-03-20 14:15:58 UTC) #21
msw
Thanks for the code consolidation; I have some more nits. https://codereview.chromium.org/199533004/diff/240001/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): https://codereview.chromium.org/199533004/diff/240001/chrome/browser/profiles/profile.cc#newcode170 ...
6 years, 9 months ago (2014-03-20 18:51:25 UTC) #22
noms (inactive)
Done! Unfortunately a rebase sneaked in there because I had to download the patch on ...
6 years, 9 months ago (2014-03-20 20:28:19 UTC) #23
msw
lgtm
6 years, 9 months ago (2014-03-20 20:36:49 UTC) #24
noms (inactive)
Sweet! Thanks everyone! Sending it over the CQ.
6 years, 9 months ago (2014-03-20 20:38:06 UTC) #25
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 9 months ago (2014-03-20 20:38:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/199533004/250001
6 years, 9 months ago (2014-03-20 20:40:07 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 21:51:48 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=285497
6 years, 9 months ago (2014-03-20 21:51:48 UTC) #29
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 9 months ago (2014-03-20 21:52:29 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/199533004/250001
6 years, 9 months ago (2014-03-20 21:56:17 UTC) #31
commit-bot: I haz the power
6 years, 9 months ago (2014-03-21 01:04:20 UTC) #32
Message was sent while issue was closed.
Change committed as 258483

Powered by Google App Engine
This is Rietveld 408576698