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

Unified Diff: chrome/browser/ui/views/default_search_view.cc

Issue 8142026: Revert 104076 - Change std::wstring to string16 for views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/ui/views/default_search_view.cc
===================================================================
--- chrome/browser/ui/views/default_search_view.cc (revision 104083)
+++ chrome/browser/ui/views/default_search_view.cc (working copy)
@@ -59,7 +59,7 @@
views::Label* CreateProviderLabel(int message_id) {
views::Label* choice_label =
- new views::Label(l10n_util::GetStringUTF16(message_id));
+ new views::Label(UTF16ToWide(l10n_util::GetStringUTF16(message_id)));
choice_label->SetColor(SK_ColorBLACK);
choice_label->SetFont(
choice_label->font().DeriveFont(1, gfx::Font::NORMAL));
@@ -279,9 +279,9 @@
// Add text informing the user about the requested default change.
layout->StartRowWithPadding(0, kPaddedWholeDialogViewSetId,
1, views::kLabelToControlVerticalSpacing);
- Label* summary_label = new Label(l10n_util::GetStringFUTF16(
+ Label* summary_label = new Label(UTF16ToWide(l10n_util::GetStringFUTF16(
IDS_DEFAULT_SEARCH_SUMMARY,
- WideToUTF16(proposed_short_name)));
+ WideToUTF16(proposed_short_name))));
summary_label->SetColor(SK_ColorBLACK);
summary_label->SetFont(
summary_label->font().DeriveFont(1, gfx::Font::NORMAL));

Powered by Google App Engine
This is Rietveld 408576698