Commit 6f4293fb authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

cbuiv: anchor chooser bubble to left side of location bar

Update the anchor position after creating the bubble.

Bug: 1078500
Change-Id: Iee2c92c307960182e544ef2aed96b04d0bd992a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2185271
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#766565}
parent 7e2e02de
...@@ -194,6 +194,7 @@ base::OnceClosure ShowDeviceChooserDialog( ...@@ -194,6 +194,7 @@ base::OnceClosure ShowDeviceChooserDialog(
gfx::NativeView parent = parent_widget->GetNativeView(); gfx::NativeView parent = parent_widget->GetNativeView();
DCHECK(parent); DCHECK(parent);
bubble->set_parent_window(parent); bubble->set_parent_window(parent);
bubble->UpdateAnchor(browser);
base::OnceClosure close_closure = bubble->MakeCloseClosure(); base::OnceClosure close_closure = bubble->MakeCloseClosure();
views::Widget* widget = views::Widget* widget =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment