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

Unified Diff: chrome/browser/gtk/options/simple_content_exceptions_window.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/options/simple_content_exceptions_window.cc
===================================================================
--- chrome/browser/gtk/options/simple_content_exceptions_window.cc (revision 70272)
+++ chrome/browser/gtk/options/simple_content_exceptions_window.cc (working copy)
@@ -157,13 +157,13 @@
void SimpleContentExceptionsWindow::SetColumnValues(int row,
GtkTreeIter* iter) {
- std::wstring hostname = model_->GetText(row, IDS_EXCEPTIONS_HOSTNAME_HEADER);
+ string16 hostname = model_->GetText(row, IDS_EXCEPTIONS_HOSTNAME_HEADER);
gtk_list_store_set(list_store_, iter, gtk_tree::TableAdapter::COL_TITLE,
- WideToUTF8(hostname).c_str(), -1);
+ UTF16ToUTF8(hostname).c_str(), -1);
- std::wstring action = model_->GetText(row, IDS_EXCEPTIONS_ACTION_HEADER);
+ string16 action = model_->GetText(row, IDS_EXCEPTIONS_ACTION_HEADER);
gtk_list_store_set(list_store_, iter, COL_ACTION,
- WideToUTF8(action).c_str(), -1);
+ UTF16ToUTF8(action).c_str(), -1);
}
void SimpleContentExceptionsWindow::OnAnyModelUpdateStart() {

Powered by Google App Engine
This is Rietveld 408576698