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

Unified Diff: chrome/browser/ui/profile_menu_model.cc

Issue 7461130: Revert 95434 - Multi-Profiles: Update strings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/profile_menu_model.cc
===================================================================
--- chrome/browser/ui/profile_menu_model.cc (revision 95448)
+++ chrome/browser/ui/profile_menu_model.cc (working copy)
@@ -74,8 +74,11 @@
AddSeparator();
- AddItemWithStringId(ProfileMenuModel::COMMAND_CREATE_NEW_PROFILE,
- IDS_PROFILES_CREATE_NEW_PROFILE_OPTION);
+ const string16 short_product_name =
+ l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME);
+ AddItem(ProfileMenuModel::COMMAND_CREATE_NEW_PROFILE,
+ l10n_util::GetStringFUTF16(IDS_PROFILES_CREATE_NEW_PROFILE_OPTION,
+ short_product_name));
}
void SwitchProfileMenuModel::ExecuteCommand(int command_id) {
@@ -155,8 +158,9 @@
if (cache.GetNumberOfProfiles() > 1) {
switch_profiles_sub_menu_model_.reset(
new SwitchProfileMenuModel(this, browser_));
- AddSubMenuWithStringId(COMMAND_SWITCH_PROFILE_MENU, IDS_PROFILES_MENU,
- switch_profiles_sub_menu_model_.get());
+ AddSubMenu(COMMAND_SWITCH_PROFILE_MENU, l10n_util::GetStringFUTF16(
+ IDS_PROFILES_MENU, short_product_name),
+ switch_profiles_sub_menu_model_.get());
} else {
switch_profiles_sub_menu_model_.reset();
AddItem(COMMAND_CREATE_NEW_PROFILE, l10n_util::GetStringFUTF16(
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698