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 506ee3e28241024b67b14be201cc1d0bfcd7dd54..afe033a0cc66441cd4ed2115e8dcc2184f449da4 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc |
@@ -690,11 +690,10 @@ base::string16 BookmarkBarView::CreateToolTipForURLAndTitle( |
const GURL& url, |
const base::string16& title, |
Profile* profile) { |
- int max_width = views::TooltipManager::GetMaxWidth( |
- screen_loc.x(), |
- screen_loc.y(), |
- widget->GetNativeView()); |
- const gfx::FontList tt_fonts = widget->GetTooltipManager()->GetFontList(); |
+ const views::TooltipManager* tooltip_manager = widget->GetTooltipManager(); |
+ int max_width = tooltip_manager->GetMaxWidth(screen_loc, |
+ widget->GetNativeView()); |
+ const gfx::FontList tt_fonts = tooltip_manager->GetFontList(); |
base::string16 result; |
// First the title. |