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

Unified Diff: chrome/browser/ui/views/website_settings/permission_prompt_impl_views.cc

Issue 2328983002: [omnibox] Return reference to ImageView instead of LocationIconView (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/website_settings/permission_prompt_impl_views.cc
diff --git a/chrome/browser/ui/views/website_settings/permission_prompt_impl_views.cc b/chrome/browser/ui/views/website_settings/permission_prompt_impl_views.cc
index fd06d0ec3a5a83a5941d99888a23cd5e1bc1b8fa..db195ad40fec301021dd208d37c7d0a25689068a 100644
--- a/chrome/browser/ui/views/website_settings/permission_prompt_impl_views.cc
+++ b/chrome/browser/ui/views/website_settings/permission_prompt_impl_views.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/views/website_settings/permission_prompt_impl.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/vector2d.h"
+#include "ui/views/controls/image_view.h"
// The Views browser implementation of PermissionPromptImpl's
// anchor methods. Views browsers have a native View to anchor the bubble to,
@@ -26,7 +27,9 @@ views::View* PermissionPromptImpl::GetAnchorView() {
BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser_);
if (browser_->SupportsWindowFeature(Browser::FEATURE_LOCATIONBAR))
- return browser_view->GetLocationBarView()->location_icon_view();
+ return browser_view->GetLocationBarView()
+ ->location_icon_view()
+ ->GetImageView();
// Fall back to GetAnchorPoint().
return nullptr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698