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

Issue 1120013003: Add right-click user switching tutorial bubble. (Closed)

Created:
5 years, 7 months ago by anthonyvd
Modified:
5 years, 7 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add right-click user switching tutorial bubble. This design is based on this mock: https://drive.google.com/a/chromium.org/file/d/0B-DVbqI3huZGZGhIcTFtRWRTSTA/view?usp=sharing BUG=458664 TEST= 1. Launch chrome and make sure there is more than one available profile. 2. Left-click on the Avatar Button. 3. A tutorial bubble should be displayed informing the user they can right-click the button to see other users. 4. Close the bubble without dismissing the tutorial, for example by clicking in the content area. 5. Reopening the Avatar Menu should still display the tutorial until it is explicitly dismissed (clicking the X or the "Ok, got it!" button) or until the user right clicks the button. 6. Once dismissed, the tutorial should never be shown again. Committed: https://crrev.com/b7bdcdec6cbab0f4b395f35100954e4a47820194 Cr-Commit-Position: refs/heads/master@{#330565}

Patch Set 1 #

Patch Set 2 : Only show the tutorial when there's a potential switch target. #

Patch Set 3 : Make the pref per-chrome instead of per-profile. #

Total comments: 15

Patch Set 4 : Address feedback and refactor profile choice logic. #

Patch Set 5 : Fix Mac build. #

Total comments: 5

Patch Set 6 : Added tests. #

Total comments: 7

Patch Set 7 : Factor out ShouldShow*Tutorial methods to profile_window. #

Total comments: 2

Patch Set 8 : Remove unused declarations #

Patch Set 9 : Changed ObjCCast to ObjCCastStrict in tests. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -75 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_window.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/profiles/profiles_state.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 5 6 7 8 9 8 chunks +69 lines, -33 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 2 chunks +96 lines, -1 line 0 comments Download
M chrome/browser/ui/profile_chooser_constants.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 6 chunks +57 lines, -33 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (5 generated)
anthonyvd
Hello everyone! This changelist that adds a message informing the user of the existence of ...
5 years, 7 months ago (2015-05-04 20:49:12 UTC) #2
Mike Lerman
Hi Anthony, Excited to see this tutorial coming to fruition! https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd#newcode12077 ...
5 years, 7 months ago (2015-05-05 01:31:45 UTC) #3
anthonyvd
Thanks for your feedback Mike! https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd#newcode12077 chrome/app/generated_resources.grd:12077: + Right click on ...
5 years, 7 months ago (2015-05-05 16:19:17 UTC) #4
Mike Lerman
Thanks! profiles lgtm. https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd#newcode12077 chrome/app/generated_resources.grd:12077: + Right click on the button ...
5 years, 7 months ago (2015-05-05 17:18:12 UTC) #5
groby-ooo-7-16
On 2015/05/05 17:18:12, Mike Lerman wrote: > Thanks! profiles lgtm. > > https://codereview.chromium.org/1120013003/diff/40001/chrome/app/generated_resources.grd > File ...
5 years, 7 months ago (2015-05-06 17:25:04 UTC) #6
anthonyvd
On 2015/05/06 17:25:04, groby wrote: > On 2015/05/05 17:18:12, Mike Lerman wrote: > > Thanks! ...
5 years, 7 months ago (2015-05-06 17:40:16 UTC) #7
anthonyvd
5 years, 7 months ago (2015-05-06 17:41:01 UTC) #8
groby-ooo-7-16
Mostly there, but can I please get some tests? https://codereview.chromium.org/1120013003/diff/80001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/1120013003/diff/80001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode1452 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:1452: ...
5 years, 7 months ago (2015-05-07 01:59:02 UTC) #9
anthonyvd
Comments addressed, tests added! https://codereview.chromium.org/1120013003/diff/80001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm (right): https://codereview.chromium.org/1120013003/diff/80001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm#newcode1452 chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm:1452: return tutorialMode_ == profiles::TUTORIAL_MODE_WELCOME_UPGRADE || ...
5 years, 7 months ago (2015-05-12 16:09:11 UTC) #10
groby-ooo-7-16
Thank you for the tests! c/b/ui/cocoa LGTM with one nit question. https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm (right): ...
5 years, 7 months ago (2015-05-12 19:27:58 UTC) #11
sky
https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.h File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.h#newcode171 chrome/browser/ui/views/profiles/profile_chooser_view.h:171: bool ShouldShowWelcomeUpgradeTutorial(); Are these ShouldShowFoo functions really platform specific? ...
5 years, 7 months ago (2015-05-14 17:34:56 UTC) #12
Mike Lerman
https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.h File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.h#newcode171 chrome/browser/ui/views/profiles/profile_chooser_view.h:171: bool ShouldShowWelcomeUpgradeTutorial(); On 2015/05/14 17:34:56, sky wrote: > Are ...
5 years, 7 months ago (2015-05-14 17:39:58 UTC) #13
anthonyvd
https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.h File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.h#newcode171 chrome/browser/ui/views/profiles/profile_chooser_view.h:171: bool ShouldShowWelcomeUpgradeTutorial(); On 2015/05/14 17:34:56, sky wrote: > Are ...
5 years, 7 months ago (2015-05-14 20:24:17 UTC) #14
Mike Lerman
Profiles Still LGTM. https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1599 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1599: bool ProfileChooserView::ShouldShowWelcomeUpgradeTutorial() { You can remove ...
5 years, 7 months ago (2015-05-14 20:29:43 UTC) #15
sky
https://codereview.chromium.org/1120013003/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.h File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/1120013003/diff/120001/chrome/browser/ui/views/profiles/profile_chooser_view.h#newcode171 chrome/browser/ui/views/profiles/profile_chooser_view.h:171: bool ShouldShowWelcomeUpgradeTutorial(); These two aren't needed anymore, right?
5 years, 7 months ago (2015-05-14 21:22:03 UTC) #16
anthonyvd
Comments addressed, thanks. https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1599 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1599: bool ProfileChooserView::ShouldShowWelcomeUpgradeTutorial() { On 2015/05/14 20:29:43, ...
5 years, 7 months ago (2015-05-15 13:26:57 UTC) #17
groby-ooo-7-16
ping re: nit
5 years, 7 months ago (2015-05-15 18:49:33 UTC) #18
anthonyvd
On 2015/05/15 18:49:33, groby wrote: > ping re: nit Oops sorry about that I totally ...
5 years, 7 months ago (2015-05-15 18:52:31 UTC) #19
groby-ooo-7-16
Awesome, thank you. (And of course, c/b/ui/cocoa still LGTM)
5 years, 7 months ago (2015-05-15 19:01:39 UTC) #20
anthonyvd
Thanks to you! https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm (right): https://codereview.chromium.org/1120013003/diff/100001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm#newcode112 chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm:112: NSTextField* tutorialTitle = base::mac::ObjCCast<NSTextField>( On 2015/05/12 ...
5 years, 7 months ago (2015-05-15 19:25:27 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120013003/180001
5 years, 7 months ago (2015-05-15 19:52:14 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-15 21:03:20 UTC) #26
sky
LGTM
5 years, 7 months ago (2015-05-18 17:07:06 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120013003/180001
5 years, 7 months ago (2015-05-19 17:30:08 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 7 months ago (2015-05-19 18:31:38 UTC) #30
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 18:32:30 UTC) #31
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b7bdcdec6cbab0f4b395f35100954e4a47820194
Cr-Commit-Position: refs/heads/master@{#330565}

Powered by Google App Engine
This is Rietveld 408576698