diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-26 06:00:42 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-26 06:00:42 +0000 |
commit | 5fc549f0469b301169a17a28b725c8ea20d80673 (patch) | |
tree | fea512f022e5be806e587aea4a8905fcd73c2331 /chrome/browser/ui/views/location_bar | |
parent | 7de2cf6dea088d93b88e997605e229888fadfceb (diff) | |
download | chromium_src-5fc549f0469b301169a17a28b725c8ea20d80673.zip chromium_src-5fc549f0469b301169a17a28b725c8ea20d80673.tar.gz chromium_src-5fc549f0469b301169a17a28b725c8ea20d80673.tar.bz2 |
Use widget to specify the parent of views menu.
BUG=none
TEST=none. no functional change and all tests should pass.
Review URL: http://codereview.chromium.org/7489035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/location_bar')
-rw-r--r-- | chrome/browser/ui/views/location_bar/page_action_image_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc index 3cbad31..f8168f4 100644 --- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc +++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc @@ -159,8 +159,8 @@ void PageActionImageView::ShowContextMenu(const gfx::Point& p, gfx::Point screen_loc; views::View::ConvertPointToScreen(this, &screen_loc); - menu.RunMenuAt(GetWidget()->GetNativeWindow(), NULL, - gfx::Rect(screen_loc ,size()), views::MenuItemView::TOPLEFT, true); + menu.RunMenuAt(GetWidget(), NULL, gfx::Rect(screen_loc ,size()), + views::MenuItemView::TOPLEFT, true); } void PageActionImageView::OnImageLoaded( |