| 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();
|
|
|
|
|