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

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

Issue 8113031: Change std::wstring to string16 for views::Label and views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/ui/views/page_info_bubble_view.cc ('k') | chrome/browser/ui/views/uninstall_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/sad_tab_view.cc
diff --git a/chrome/browser/ui/views/sad_tab_view.cc b/chrome/browser/ui/views/sad_tab_view.cc
index 9ed5e675e911fade50d91dd0d963cf6ad5d432bc..e5ae53897ae269f67b75ded19c2fd0c9c2a1fa3a 100644
--- a/chrome/browser/ui/views/sad_tab_view.cc
+++ b/chrome/browser/ui/views/sad_tab_view.cc
@@ -101,16 +101,16 @@ void SadTabView::ViewHierarchyChanged(bool is_add,
layout->StartRowWithPadding(0, column_set_id, 1, kPadding);
layout->AddView(image);
- views::Label* title = new views::Label(UTF16ToWide(l10n_util::GetStringUTF16(
- (kind_ == CRASHED) ? IDS_SAD_TAB_TITLE : IDS_KILLED_TAB_TITLE)));
+ views::Label* title = new views::Label(l10n_util::GetStringUTF16(
+ (kind_ == CRASHED) ? IDS_SAD_TAB_TITLE : IDS_KILLED_TAB_TITLE));
const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont);
title->SetFont(base_font.DeriveFont(kTitleFontSizeDelta, gfx::Font::BOLD));
title->SetColor(kTextColor);
layout->StartRowWithPadding(0, column_set_id, 0, kPadding);
layout->AddView(title);
- message_ = new views::Label(UTF16ToWide(l10n_util::GetStringUTF16(
- (kind_ == CRASHED) ? IDS_SAD_TAB_MESSAGE : IDS_KILLED_TAB_MESSAGE)));
+ message_ = new views::Label(l10n_util::GetStringUTF16(
+ (kind_ == CRASHED) ? IDS_SAD_TAB_MESSAGE : IDS_KILLED_TAB_MESSAGE));
message_->SetFont(base_font.DeriveFont(kMessageFontSizeDelta));
message_->SetColor(kTextColor);
message_->SetMultiLine(true);
@@ -118,8 +118,8 @@ void SadTabView::ViewHierarchyChanged(bool is_add,
layout->AddView(message_);
if (tab_contents_) {
- std::wstring help_link(UTF16ToWide(l10n_util::GetStringUTF16(
- (kind_ == CRASHED) ? IDS_SAD_TAB_HELP_LINK : IDS_LEARN_MORE)));
+ string16 help_link(l10n_util::GetStringUTF16(
+ (kind_ == CRASHED) ? IDS_SAD_TAB_HELP_LINK : IDS_LEARN_MORE));
help_link_ = new views::Link(help_link);
help_link_->SetFont(base_font.DeriveFont(kMessageFontSizeDelta));
help_link_->SetNormalColor(kTextColor);
@@ -130,11 +130,10 @@ void SadTabView::ViewHierarchyChanged(bool is_add,
string16 help_text(l10n_util::GetStringFUTF16(IDS_SAD_TAB_HELP_MESSAGE,
string16(), &offset));
views::Label* help_prefix =
- new views::Label(UTF16ToWide(help_text.substr(0, offset)));
+ new views::Label(help_text.substr(0, offset));
help_prefix->SetFont(base_font.DeriveFont(kMessageFontSizeDelta));
help_prefix->SetColor(kTextColor);
- views::Label* help_suffix =
- new views::Label(UTF16ToWide(help_text.substr(offset)));
+ views::Label* help_suffix = new views::Label(help_text.substr(offset));
help_suffix->SetFont(base_font.DeriveFont(kMessageFontSizeDelta));
help_suffix->SetColor(kTextColor);
@@ -155,8 +154,8 @@ void SadTabView::ViewHierarchyChanged(bool is_add,
layout->StartRowWithPadding(0, column_set_id, 0, kPadding);
layout->AddView(help_link_);
- feedback_link_ = new views::Link(UTF16ToWide(
- l10n_util::GetStringUTF16(IDS_KILLED_TAB_FEEDBACK_LINK)));
+ feedback_link_ = new views::Link(
+ l10n_util::GetStringUTF16(IDS_KILLED_TAB_FEEDBACK_LINK));
feedback_link_->SetFont(base_font.DeriveFont(kMessageFontSizeDelta));
feedback_link_->SetNormalColor(kTextColor);
feedback_link_->set_listener(this);
« no previous file with comments | « chrome/browser/ui/views/page_info_bubble_view.cc ('k') | chrome/browser/ui/views/uninstall_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698