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

Unified Diff: chrome/browser/chromeos/frame/bubble_frame_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 | « no previous file | chrome/browser/chromeos/frame/panel_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/frame/bubble_frame_view.cc
diff --git a/chrome/browser/chromeos/frame/bubble_frame_view.cc b/chrome/browser/chromeos/frame/bubble_frame_view.cc
index e864b804c7856f7f33d7667ca6862a15d4875a62..a8e5eb1b59c65a1022df8501a23385fff6257a08 100644
--- a/chrome/browser/chromeos/frame/bubble_frame_view.cc
+++ b/chrome/browser/chromeos/frame/bubble_frame_view.cc
@@ -50,8 +50,7 @@ BubbleFrameView::BubbleFrameView(views::Widget* frame,
close_button_(NULL),
throbber_(NULL) {
if (widget_delegate->ShouldShowWindowTitle()) {
- title_ = new views::Label(
- UTF16ToWideHack(widget_delegate->GetWindowTitle()));
+ title_ = new views::Label(widget_delegate->GetWindowTitle());
title_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
title_->SetFont(title_->font().DeriveFont(kFontSizeCorrectionDelta,
gfx::Font::BOLD));
@@ -82,7 +81,7 @@ BubbleFrameView::~BubbleFrameView() {
void BubbleFrameView::StartThrobber() {
DCHECK(throbber_ != NULL);
if (title_)
- title_->SetText(std::wstring());
+ title_->SetText(string16());
throbber_->Start();
}
@@ -90,8 +89,7 @@ void BubbleFrameView::StopThrobber() {
DCHECK(throbber_ != NULL);
throbber_->Stop();
if (title_)
- title_->SetText(
- UTF16ToWideHack(frame_->widget_delegate()->GetWindowTitle()));
+ title_->SetText(frame_->widget_delegate()->GetWindowTitle());
}
gfx::Rect BubbleFrameView::GetBoundsForClientView() const {
« no previous file with comments | « no previous file | chrome/browser/chromeos/frame/panel_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698