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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 916423002: Tooltip Cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win build fix Created 5 years, 10 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 | « ash/shell.cc ('k') | ui/views/corewm/tooltip.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « ash/shell.cc ('k') | ui/views/corewm/tooltip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698