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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 463183002: Update strings in the avatar bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated string per the new spec Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h" 7 #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h"
8 8
9 #include "base/mac/bundle_locations.h" 9 #include "base/mac/bundle_locations.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 if (showCount > kUpgradeWelcomeTutorialShowMax) 1183 if (showCount > kUpgradeWelcomeTutorialShowMax)
1184 return nil; 1184 return nil;
1185 1185
1186 if (tutorialMode_ != profiles::TUTORIAL_MODE_WELCOME_UPGRADE) { 1186 if (tutorialMode_ != profiles::TUTORIAL_MODE_WELCOME_UPGRADE) {
1187 if (showCount == kUpgradeWelcomeTutorialShowMax) 1187 if (showCount == kUpgradeWelcomeTutorialShowMax)
1188 return nil; 1188 return nil;
1189 profile->GetPrefs()->SetInteger( 1189 profile->GetPrefs()->SetInteger(
1190 prefs::kProfileAvatarTutorialShown, showCount + 1); 1190 prefs::kProfileAvatarTutorialShown, showCount + 1);
1191 } 1191 }
1192 1192
1193 NSString* titleMessage = l10n_util::GetNSStringF( 1193 NSString* titleMessage = l10n_util::GetNSString(
1194 IDS_PROFILES_WELCOME_UPGRADE_TUTORIAL_TITLE, avatarItem.name); 1194 IDS_PROFILES_WELCOME_UPGRADE_TUTORIAL_TITLE);
1195 NSString* contentMessage = l10n_util::GetNSString( 1195 NSString* contentMessage = l10n_util::GetNSString(
1196 IDS_PROFILES_WELCOME_UPGRADE_TUTORIAL_CONTENT_TEXT); 1196 IDS_PROFILES_WELCOME_UPGRADE_TUTORIAL_CONTENT_TEXT);
1197 NSString* linkMessage = l10n_util::GetNSStringF( 1197 NSString* linkMessage = l10n_util::GetNSStringF(
1198 IDS_PROFILES_NOT_YOU, avatarItem.name); 1198 IDS_PROFILES_NOT_YOU, avatarItem.name);
1199 NSString* buttonMessage = l10n_util::GetNSString( 1199 NSString* buttonMessage = l10n_util::GetNSString(
1200 IDS_PROFILES_TUTORIAL_WHATS_NEW_BUTTON); 1200 IDS_PROFILES_TUTORIAL_WHATS_NEW_BUTTON);
1201 return [self tutorialViewWithMode:profiles::TUTORIAL_MODE_WELCOME_UPGRADE 1201 return [self tutorialViewWithMode:profiles::TUTORIAL_MODE_WELCOME_UPGRADE
1202 titleMessage:titleMessage 1202 titleMessage:titleMessage
1203 contentMessage:contentMessage 1203 contentMessage:contentMessage
1204 linkMessage:linkMessage 1204 linkMessage:linkMessage
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1961 } 1961 }
1962 1962
1963 - (bool)shouldShowGoIncognito { 1963 - (bool)shouldShowGoIncognito {
1964 bool incognitoAvailable = 1964 bool incognitoAvailable =
1965 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) != 1965 IncognitoModePrefs::GetAvailability(browser_->profile()->GetPrefs()) !=
1966 IncognitoModePrefs::DISABLED; 1966 IncognitoModePrefs::DISABLED;
1967 return incognitoAvailable && !browser_->profile()->IsGuestSession(); 1967 return incognitoAvailable && !browser_->profile()->IsGuestSession();
1968 } 1968 }
1969 1969
1970 @end 1970 @end
OLDNEW
« no previous file with comments | « chrome/app/google_chrome_strings.grd ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698