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

Unified Diff: chrome/browser/tab_contents/navigation_entry.cc

Issue 6017001: Move ElideString() from base/string_util.cc to app/text_elider.cc to ... (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/tab_contents/navigation_entry.cc
===================================================================
--- chrome/browser/tab_contents/navigation_entry.cc (revision 69274)
+++ chrome/browser/tab_contents/navigation_entry.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "app/resource_bundle.h"
+#include "app/text_elider.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -102,7 +103,9 @@
} else if (!url_.is_empty()) {
title = net::FormatUrl(url_, languages);
}
- ElideString(UTF16ToWideHack(title), chrome::kMaxTitleChars, &elided_title);
+ gfx::ElideString(UTF16ToWideHack(title),
+ chrome::kMaxTitleChars,
+ &elided_title);
cached_display_title_ = WideToUTF16Hack(elided_title);
return cached_display_title_;
}
« no previous file with comments | « chrome/browser/gtk/external_protocol_dialog_gtk.cc ('k') | chrome/browser/ui/app_modal_dialogs/js_modal_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698