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

Unified Diff: chrome/browser/ui/views/infobars/infobar_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
« no previous file with comments | « chrome/browser/ui/views/indexed_db_info_view.cc ('k') | chrome/browser/ui/views/instant_confirm_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar_view.cc
===================================================================
--- chrome/browser/ui/views/infobars/infobar_view.cc (revision 104083)
+++ chrome/browser/ui/views/infobars/infobar_view.cc (working copy)
@@ -4,10 +4,6 @@
#include "chrome/browser/ui/views/infobars/infobar_view.h"
-#if defined(OS_WIN)
-#include <shellapi.h>
-#endif
-
#include <algorithm>
#include "base/memory/scoped_ptr.h"
@@ -37,6 +33,8 @@
#include "views/window/non_client_view.h"
#if defined(OS_WIN)
+#include <shellapi.h>
+
#include "base/win/win_util.h"
#include "base/win/windows_version.h"
#include "ui/base/win/hwnd_util.h"
@@ -78,7 +76,7 @@
// static
views::Label* InfoBarView::CreateLabel(const string16& text) {
- views::Label* label = new views::Label(text,
+ views::Label* label = new views::Label(UTF16ToWideHack(text),
ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::MediumFont));
label->SetColor(SK_ColorBLACK);
label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
@@ -90,7 +88,7 @@
views::LinkListener* listener,
const SkColor& background_color) {
views::Link* link = new views::Link;
- link->SetText(text);
+ link->SetText(UTF16ToWideHack(text));
link->SetFont(
ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::MediumFont));
link->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
« no previous file with comments | « chrome/browser/ui/views/indexed_db_info_view.cc ('k') | chrome/browser/ui/views/instant_confirm_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698