Index: chrome/browser/gtk/edit_search_engine_dialog.cc |
=================================================================== |
--- chrome/browser/gtk/edit_search_engine_dialog.cc (revision 71269) |
+++ chrome/browser/gtk/edit_search_engine_dialog.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -26,7 +26,7 @@ |
namespace { |
std::string GetDisplayURL(const TemplateURL& turl) { |
- return turl.url() ? WideToUTF8(turl.url()->DisplayURL()) : std::string(); |
+ return turl.url() ? UTF16ToUTF8(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_), |
- WideToUTF8(controller_->template_url()->short_name()).c_str()); |
+ UTF16ToUTF8(controller_->template_url()->short_name()).c_str()); |
gtk_entry_set_text( |
GTK_ENTRY(keyword_entry_), |
- WideToUTF8(controller_->template_url()->keyword()).c_str()); |
+ UTF16ToUTF8(controller_->template_url()->keyword()).c_str()); |
gtk_entry_set_text( |
GTK_ENTRY(url_entry_), |
GetDisplayURL(*controller_->template_url()).c_str()); |