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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 2765413002: Removing fast user switcher tutorial (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 266864322ee0e9846f397b02f27f1029d27eeeaa..584d15d9550c8895688eeabd93de22274236384d 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -982,10 +982,6 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
// the previous active view. |avatar_item| refers to the current profile.
- (NSView*)buildWelcomeUpgradeTutorialView:(const AvatarMenu::Item&)item;
-// Builds a tutorial card to inform the user about right-click user switching if
-// needed.
-- (NSView*)buildRightClickTutorialView;
-
// Builds a tutorial card to have the user confirm the last Chrome signin,
// Chrome sync will be delayed until the user either dismisses the tutorial, or
// configures sync through the "Settings" link.
@@ -1271,12 +1267,6 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
signin_ui_util::kUpgradeWelcomeTutorialShowMax + 1);
}
- if(tutorialMode_ == profiles::TUTORIAL_MODE_RIGHT_CLICK_SWITCHING) {
- PrefService* localState = g_browser_process->local_state();
- localState->SetBoolean(
- prefs::kProfileAvatarRightClickTutorialDismissed, true);
- }
-
tutorialMode_ = profiles::TUTORIAL_MODE_NONE;
[self initMenuContentsWithView:profiles::BUBBLE_VIEW_MODE_PROFILE_CHOOSER];
}
@@ -1636,26 +1626,6 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
buttonAction:@selector(seeWhatsNew:)];
}
-- (NSView*)buildRightClickTutorialView {
- NSString* titleMessage = l10n_util::GetNSString(
- IDS_PROFILES_RIGHT_CLICK_TUTORIAL_TITLE);
- NSString* contentMessage = l10n_util::GetNSString(
- IDS_PROFILES_RIGHT_CLICK_TUTORIAL_CONTENT_TEXT);
- NSString* buttonMessage = l10n_util::GetNSString(
- IDS_PROFILES_TUTORIAL_OK_BUTTON);
-
- return
- [self tutorialViewWithMode:profiles::TUTORIAL_MODE_RIGHT_CLICK_SWITCHING
- titleMessage:titleMessage
- contentMessage:contentMessage
- linkMessage:nil
- buttonMessage:buttonMessage
- stackButton:NO
- hasCloseButton:NO
- linkAction:nil
- buttonAction:@selector(dismissTutorial:)];
-}
-
- (NSView*)tutorialViewWithMode:(profiles::TutorialMode)mode
titleMessage:(NSString*)titleMessage
contentMessage:(NSString*)contentMessage
« no previous file with comments | « chrome/browser/profiles/profiles_state.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698