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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 22831005: Use visible entry for website settings dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TabSpecificContentSettings Created 7 years, 4 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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 95693c253420b9305e64a2a2d847f75150bc2440..5efa56333f548790635beedc720f1ae07373db55 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -1371,7 +1371,8 @@ gboolean LocationBarViewGtk::OnIconReleased(GtkWidget* sender,
if (event->x == 0 && event->y == 0)
return FALSE;
- NavigationEntry* nav_entry = tab->GetController().GetActiveEntry();
+ // Important to use GetVisibleEntry to match what's showing in the omnibox.
+ NavigationEntry* nav_entry = tab->GetController().GetVisibleEntry();
if (!nav_entry) {
NOTREACHED();
return FALSE;

Powered by Google App Engine
This is Rietveld 408576698