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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 2380763002: Adjust positioning of website settings popup for Harmony. (Closed)
Patch Set: typo 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/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index bc89bc5d0cef132ad285f7ad32d70de39d04b437..c7de7420339b291036929ea89359319bc0429c42 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1355,7 +1355,10 @@ void BrowserView::ShowWebsiteSettings(
// Some browser windows have a location icon embedded in the frame. Try to
// use that if it exists. If it doesn't exist, use the location icon from
// the location bar.
- views::View* popup_anchor = frame_->GetLocationIconView();
+ views::View* popup_anchor =
+ ui::MaterialDesignController::IsSecondaryUiMaterial()
+ ? toolbar_->location_bar()
+ : frame_->GetLocationIconView();
if (!popup_anchor)
popup_anchor = GetLocationBarView()->location_icon_view()->GetImageView();

Powered by Google App Engine
This is Rietveld 408576698