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

Unified Diff: chrome/browser/chromeos/frame/panel_controller.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
Index: chrome/browser/chromeos/frame/panel_controller.cc
diff --git a/chrome/browser/chromeos/frame/panel_controller.cc b/chrome/browser/chromeos/frame/panel_controller.cc
index a81beff67ce3bb58faa2c825bd4f9b127c5c6cea..916776f174f692801ddd7fefeac7f783b8c00de3 100644
--- a/chrome/browser/chromeos/frame/panel_controller.cc
+++ b/chrome/browser/chromeos/frame/panel_controller.cc
@@ -211,7 +211,7 @@ void PanelController::Init(bool initial_focus,
client_event_handler_id_ = g_signal_connect(
panel_, "client-event", G_CALLBACK(OnPanelClientEvent), this);
-#endif // !USE_AURA
+#endif // !USE_AURA
title_content_ = new TitleContentView(this);
title_window_->SetContentsView(title_content_);
@@ -222,8 +222,7 @@ void PanelController::Init(bool initial_focus,
void PanelController::UpdateTitleBar() {
if (!delegate_ || !title_window_)
return;
- title_content_->title_label()->SetText(
- UTF16ToWideHack(delegate_->GetPanelTitle()));
+ title_content_->title_label()->SetText(delegate_->GetPanelTitle());
title_content_->title_icon()->SetImage(delegate_->GetPanelIcon());
}
@@ -440,7 +439,7 @@ PanelController::TitleContentView::TitleContentView(
title_icon_ = new views::ImageView();
AddChildView(title_icon_);
- title_label_ = new views::Label(std::wstring());
+ title_label_ = new views::Label(string16());
title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
AddChildView(title_label_);
« no previous file with comments | « chrome/browser/chromeos/frame/bubble_frame_view.cc ('k') | chrome/browser/chromeos/input_method/candidate_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698