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

Unified Diff: views/view_text_utils.cc

Issue 6315002: Some wstring -> string16 conversion in src/app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/app
Patch Set: rebase Created 9 years, 11 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/autocomplete/autocomplete_popup_contents_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_text_utils.cc
diff --git a/views/view_text_utils.cc b/views/view_text_utils.cc
index 70cb8b9a73425b3ce332779428168f2f3f5aa18d..cde347caaa5e3f6ea43d2296d3d618989fdaad1c 100644
--- a/views/view_text_utils.cc
+++ b/views/view_text_utils.cc
@@ -32,7 +32,7 @@ void DrawTextAndPositionUrl(gfx::Canvas* canvas,
// initialize a bidirectional ICU line iterator and split the text into
// runs that are either strictly LTR or strictly RTL, with no mix.
BiDiLineIterator bidi_line;
- if (!bidi_line.Open(text.c_str(), true, false))
+ if (!bidi_line.Open(WideToUTF16Hack(text), true, false))
return;
// Iterate over each run and draw it.
« no previous file with comments | « chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698