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

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

Issue 10219009: Convert CalculateMinString() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 1c29d095b7df825efabc14b8813b91addba29b34..394d2d80591f5298c58174ebf159786d9c0df648 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -990,16 +990,13 @@ void LocationBarViewGtk::SetKeywordLabel(const string16& keyword) {
return;
bool is_extension_keyword;
- const string16 short_name = template_url_service->
- GetKeywordShortName(keyword, &is_extension_keyword);
+ const string16 short_name = template_url_service->GetKeywordShortName(
+ keyword, &is_extension_keyword);
int message_id = is_extension_keyword ?
IDS_OMNIBOX_EXTENSION_KEYWORD_TEXT : IDS_OMNIBOX_KEYWORD_TEXT;
- string16 full_name = l10n_util::GetStringFUTF16(message_id,
- short_name);
+ string16 full_name = l10n_util::GetStringFUTF16(message_id, short_name);
string16 partial_name = l10n_util::GetStringFUTF16(
- message_id,
- WideToUTF16Hack(
- location_bar_util::CalculateMinString(UTF16ToWideHack(short_name))));
+ message_id, location_bar_util::CalculateMinString(short_name));
gtk_label_set_text(GTK_LABEL(tab_to_search_full_label_),
UTF16ToUTF8(full_name).c_str());
gtk_label_set_text(GTK_LABEL(tab_to_search_partial_label_),

Powered by Google App Engine
This is Rietveld 408576698