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

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

Issue 8373016: views: Change the remaining std::wstring entries to string16. (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 | « no previous file | views/drag_utils.cc » ('j') | views/view_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/about_chrome_view.cc
diff --git a/chrome/browser/ui/views/about_chrome_view.cc b/chrome/browser/ui/views/about_chrome_view.cc
index 702b696be151a99bb671f9411964c5c1ef31f6ab..24b7afc9f7585e81f59fc59f13aca41eacb05903 100644
--- a/chrome/browser/ui/views/about_chrome_view.cc
+++ b/chrome/browser/ui/views/about_chrome_view.cc
@@ -407,15 +407,15 @@ void AboutChromeView::OnPaint(gfx::Canvas* canvas) {
gfx::Size position;
// Draw the first text chunk and position the Chromium url.
view_text_utils::DrawTextAndPositionUrl(canvas, main_text_label_,
- UTF16ToWideHack(main_label_chunk1_), link1, rect1, &position,
+ main_label_chunk1_, link1, rect1, &position,
text_direction_is_rtl_, label_bounds, font);
// Draw the second text chunk and position the Open Source url.
view_text_utils::DrawTextAndPositionUrl(canvas, main_text_label_,
- UTF16ToWideHack(main_label_chunk2_), link2, rect2, &position,
+ main_label_chunk2_, link2, rect2, &position,
text_direction_is_rtl_, label_bounds, font);
// Draw the third text chunk (which has no URL associated with it).
view_text_utils::DrawTextAndPositionUrl(canvas, main_text_label_,
- UTF16ToWideHack(main_label_chunk3_), NULL, NULL, &position,
+ main_label_chunk3_, NULL, NULL, &position,
text_direction_is_rtl_, label_bounds, font);
#if defined(GOOGLE_CHROME_BUILD)
@@ -425,12 +425,12 @@ void AboutChromeView::OnPaint(gfx::Canvas* canvas) {
// And now the Terms of Service and position the TOS url.
view_text_utils::DrawTextAndPositionUrl(canvas, main_text_label_,
- UTF16ToWideHack(main_label_chunk4_), terms_of_service_url_,
+ main_label_chunk4_, terms_of_service_url_,
&terms_of_service_url_rect_, &position, text_direction_is_rtl_,
label_bounds, font);
// The last text chunk doesn't have a URL associated with it.
view_text_utils::DrawTextAndPositionUrl(canvas, main_text_label_,
- UTF16ToWideHack(main_label_chunk5_), NULL, NULL, &position,
+ main_label_chunk5_, NULL, NULL, &position,
text_direction_is_rtl_, label_bounds, font);
// Position the TOS URL within the main label.
« no previous file with comments | « no previous file | views/drag_utils.cc » ('j') | views/view_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698