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

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

Issue 6322001: Remove wstring from TemplateURL and friends.... (Closed) Base URL: svn://chrome-svn/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
« no previous file with comments | « chrome/browser/extensions/extension_omnibox_apitest.cc ('k') | chrome/browser/gtk/first_run_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « chrome/browser/extensions/extension_omnibox_apitest.cc ('k') | chrome/browser/gtk/first_run_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698