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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_view.cc

Issue 2346263003: Adjust positioning of bookmarks bubble for Harmony. (Closed)
Patch Set: Created 4 years, 3 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/views/toolbar/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc
index af1c37b02c335bcf14bec0278b49e51eb465fdd7..4b772d5948836df0e0fbe688d188b7912ef8b240 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -299,6 +299,9 @@ bool ToolbarView::IsAppMenuFocused() {
}
views::View* ToolbarView::GetBookmarkBubbleAnchor() {
+ if (ui::MaterialDesignController::IsSecondaryUiMaterial())
+ return location_bar();
+
views::View* star_view = location_bar()->star_view();
return (star_view && star_view->visible()) ? star_view : app_menu_button_;
}

Powered by Google App Engine
This is Rietveld 408576698