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

Unified Diff: chrome/browser/ui/gtk/edit_search_engine_dialog.cc

Issue 6291003: Revert 71485 - Remove wstring from TemplateURL and friends.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
Index: chrome/browser/ui/gtk/edit_search_engine_dialog.cc
===================================================================
--- chrome/browser/ui/gtk/edit_search_engine_dialog.cc (revision 71499)
+++ chrome/browser/ui/gtk/edit_search_engine_dialog.cc (working copy)
@@ -26,7 +26,7 @@
namespace {
std::string GetDisplayURL(const TemplateURL& turl) {
- return turl.url() ? UTF16ToUTF8(turl.url()->DisplayURL()) : std::string();
+ return turl.url() ? WideToUTF8(turl.url()->DisplayURL()) : std::string();
}
// Forces text to lowercase when connected to an editable's "insert-text"
@@ -158,10 +158,10 @@
if (controller_->template_url()) {
gtk_entry_set_text(
GTK_ENTRY(title_entry_),
- UTF16ToUTF8(controller_->template_url()->short_name()).c_str());
+ WideToUTF8(controller_->template_url()->short_name()).c_str());
gtk_entry_set_text(
GTK_ENTRY(keyword_entry_),
- UTF16ToUTF8(controller_->template_url()->keyword()).c_str());
+ WideToUTF8(controller_->template_url()->keyword()).c_str());
gtk_entry_set_text(
GTK_ENTRY(url_entry_),
GetDisplayURL(*controller_->template_url()).c_str());
« no previous file with comments | « chrome/browser/ui/cocoa/search_engine_list_model_unittest.mm ('k') | chrome/browser/ui/gtk/first_run_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698