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

Unified Diff: chrome/browser/gtk/keyword_editor_view.cc

Issue 6044007: Remove wstring from TableModel.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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/gtk/keyword_editor_view.cc
===================================================================
--- chrome/browser/gtk/keyword_editor_view.cc (revision 70272)
+++ chrome/browser/gtk/keyword_editor_view.cc (working copy)
@@ -233,9 +233,9 @@
// has an effect. So we just set it to normal.
COL_WEIGHT, PANGO_WEIGHT_NORMAL,
COL_WEIGHT_SET, TRUE,
- COL_TITLE, WideToUTF8(table_model_->GetText(
+ COL_TITLE, UTF16ToUTF8(table_model_->GetText(
model_row, IDS_SEARCH_ENGINES_EDITOR_DESCRIPTION_COLUMN)).c_str(),
- COL_KEYWORD, WideToUTF8(table_model_->GetText(
+ COL_KEYWORD, UTF16ToUTF8(table_model_->GetText(
model_row, IDS_SEARCH_ENGINES_EDITOR_KEYWORD_COLUMN)).c_str(),
-1);
g_object_unref(pixbuf);
@@ -311,7 +311,7 @@
list_store_, &iter,
COL_WEIGHT, PANGO_WEIGHT_BOLD,
COL_WEIGHT_SET, TRUE,
- COL_TITLE, WideToUTF8(groups[0].title).c_str(),
+ COL_TITLE, UTF16ToUTF8(groups[0].title).c_str(),
COL_IS_HEADER, TRUE,
-1);
// First group separator.
@@ -334,7 +334,7 @@
list_store_, &iter,
COL_WEIGHT, PANGO_WEIGHT_BOLD,
COL_WEIGHT_SET, TRUE,
- COL_TITLE, WideToUTF8(groups[1].title).c_str(),
+ COL_TITLE, UTF16ToUTF8(groups[1].title).c_str(),
COL_IS_HEADER, TRUE,
-1);
// Second group separator.

Powered by Google App Engine
This is Rietveld 408576698