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

Unified Diff: chrome/browser/jumplist_win.cc

Issue 299363002: Cleanup: Get rid of unneeded base::UTF16ToWide() conversions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 6 years, 7 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/jumplist_win.cc
diff --git a/chrome/browser/jumplist_win.cc b/chrome/browser/jumplist_win.cc
index 58cab806c332a9f754da7d4f7fd393c672c92fb5..79ed5f9d6d17678ac74c216c0503ea7c16dc6260 100644
--- a/chrome/browser/jumplist_win.cc
+++ b/chrome/browser/jumplist_win.cc
@@ -95,8 +95,7 @@ bool UpdateTaskCategory(JumpListUpdater* jumplist_updater) {
// We remove '&' characters from this string so we can share it with our
// system menu.
scoped_refptr<ShellLinkItem> chrome = CreateShellLink();
- std::wstring chrome_title =
- base::UTF16ToWide(l10n_util::GetStringUTF16(IDS_NEW_WINDOW));
+ base::string16 chrome_title = l10n_util::GetStringUTF16(IDS_NEW_WINDOW);
ReplaceSubstringsAfterOffset(&chrome_title, 0, L"&", L"");
chrome->set_title(chrome_title);
chrome->set_icon(chrome_path.value(), 0);
@@ -107,8 +106,8 @@ bool UpdateTaskCategory(JumpListUpdater* jumplist_updater) {
// this item.
scoped_refptr<ShellLinkItem> incognito = CreateShellLink();
incognito->GetCommandLine()->AppendSwitch(switches::kIncognito);
- std::wstring incognito_title =
- base::UTF16ToWide(l10n_util::GetStringUTF16(IDS_NEW_INCOGNITO_WINDOW));
+ base::string16 incognito_title =
+ l10n_util::GetStringUTF16(IDS_NEW_INCOGNITO_WINDOW);
ReplaceSubstringsAfterOffset(&incognito_title, 0, L"&", L"");
incognito->set_title(incognito_title);
incognito->set_icon(chrome_path.value(), 0);
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller_browsertest.cc ('k') | chrome/browser/memory_details_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698