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

Unified Diff: chrome/browser/jumplist_win.cc

Issue 879783004: Cleanup: Don't bother doing no-op wide/utf16 conversions on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | chrome/browser/ui/webui/version_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/jumplist_win.cc
diff --git a/chrome/browser/jumplist_win.cc b/chrome/browser/jumplist_win.cc
index 0c866b521e63573fd54edd6e6a85432a25acdf52..7902808aee696896f0b99bdba12843d4d3736932 100644
--- a/chrome/browser/jumplist_win.cc
+++ b/chrome/browser/jumplist_win.cc
@@ -185,16 +185,14 @@ bool UpdateJumpList(const wchar_t* app_id,
// This update request is applied into the JumpList when we commit this
// transaction.
if (!use_profiles_category && !jumplist_updater.AddCustomCategory(
- base::UTF16ToWide(
- l10n_util::GetStringUTF16(IDS_NEW_TAB_MOST_VISITED)),
+ l10n_util::GetStringUTF16(IDS_NEW_TAB_MOST_VISITED),
most_visited_pages, profiles_or_most_visited_items)) {
return false;
}
// Update the "Recently Closed" category of the JumpList.
if (!jumplist_updater.AddCustomCategory(
- base::UTF16ToWide(
- l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED)),
+ l10n_util::GetStringUTF16(IDS_NEW_TAB_RECENTLY_CLOSED),
recently_closed_pages, recently_closed_items)) {
return false;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/version_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698