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

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

Issue 7566019: Multi-Profiles: Update strings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test break 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
diff --git a/chrome/browser/ui/profile_menu_model.cc b/chrome/browser/ui/profile_menu_model.cc
index 85cd545a3d209c85d4e5307da40072d7e39e1f98..d33efbc2c33241e944c2b59ec69e6843182e7552 100644
--- a/chrome/browser/ui/profile_menu_model.cc
+++ b/chrome/browser/ui/profile_menu_model.cc
@@ -74,11 +74,8 @@ SwitchProfileMenuModel::SwitchProfileMenuModel(
AddSeparator();
- 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));
+ AddItemWithStringId(ProfileMenuModel::COMMAND_CREATE_NEW_PROFILE,
+ IDS_PROFILES_CREATE_NEW_PROFILE_OPTION);
}
void SwitchProfileMenuModel::ExecuteCommand(int command_id) {
@@ -153,18 +150,15 @@ ProfileMenuModel::ProfileMenuModel(Browser* browser)
IDS_PROFILES_CUSTOMIZE_PROFILE);
AddSeparator();
- const string16 short_product_name =
- l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME);
if (cache.GetNumberOfProfiles() > 1) {
switch_profiles_sub_menu_model_.reset(
new SwitchProfileMenuModel(this, browser_));
- AddSubMenu(COMMAND_SWITCH_PROFILE_MENU, l10n_util::GetStringFUTF16(
- IDS_PROFILES_MENU, short_product_name),
- switch_profiles_sub_menu_model_.get());
+ AddSubMenuWithStringId(COMMAND_SWITCH_PROFILE_MENU, IDS_PROFILES_MENU,
+ switch_profiles_sub_menu_model_.get());
} else {
switch_profiles_sub_menu_model_.reset();
- AddItem(COMMAND_CREATE_NEW_PROFILE, l10n_util::GetStringFUTF16(
- IDS_PROFILES_CREATE_NEW_PROFILE_OPTION, short_product_name));
+ AddItemWithStringId(COMMAND_CREATE_NEW_PROFILE,
+ IDS_PROFILES_CREATE_NEW_PROFILE_OPTION);
}
}
« 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