Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
index 41421175661ee03e47ebf78fb7557f04aeb436c2..6aa01301c6d7bc2566daad75cfffe8d07a316ce0 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
@@ -33,6 +33,7 @@ |
#include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/chrome_pages.h" |
+#include "chrome/browser/ui/elide_url.h" |
#include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
#include "chrome/browser/ui/omnibox/omnibox_view.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
@@ -611,8 +612,8 @@ base::string16 BookmarkBarView::CreateToolTipForURLAndTitle( |
if (!title.empty()) { |
base::string16 localized_title = title; |
base::i18n::AdjustStringForLocaleDirection(&localized_title); |
- result.append(gfx::ElideText(localized_title, tt_fonts, max_width, |
- gfx::ELIDE_AT_END)); |
+ result.append(ElideText(localized_title, tt_fonts, max_width, |
+ gfx::ELIDE_AT_END)); |
} |
// Only show the URL if the url and title differ. |
@@ -628,8 +629,7 @@ base::string16 BookmarkBarView::CreateToolTipForURLAndTitle( |
// default. |
std::string languages = profile->GetPrefs()->GetString( |
prefs::kAcceptLanguages); |
- base::string16 elided_url( |
- gfx::ElideUrl(url, tt_fonts, max_width, languages)); |
+ base::string16 elided_url(ElideUrl(url, tt_fonts, max_width, languages)); |
elided_url = base::i18n::GetDisplayStringInLTRDirectionality(elided_url); |
result.append(elided_url); |
} |