Chromium Code Reviews| Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc |
| =================================================================== |
| --- chrome/browser/ui/gtk/location_bar_view_gtk.cc (revision 121706) |
| +++ chrome/browser/ui/gtk/location_bar_view_gtk.cc (working copy) |
| @@ -70,6 +70,7 @@ |
| #include "ui/gfx/image/image.h" |
| #include "webkit/glue/window_open_disposition.h" |
| +using content::NavigationController; |
| using content::NavigationEntry; |
| using content::OpenURLParams; |
| using content::WebContents; |
| @@ -1041,12 +1042,14 @@ |
| if (event->x == 0 && event->y == 0) |
| return FALSE; |
| - NavigationEntry* nav_entry = tab->GetController().GetActiveEntry(); |
| + const NavigationController& controller = tab->GetController(); |
| + NavigationEntry* nav_entry = controller.GetActiveEntry(); |
| if (!nav_entry) { |
| NOTREACHED(); |
| return FALSE; |
| } |
| - tab->ShowPageInfo(nav_entry->GetURL(), nav_entry->GetSSL(), true); |
| + Browser* browser = Browser::GetBrowserForController(&controller, NULL); |
|
Ben Goodger (Google)
2012/02/14 17:52:56
You shouldn't need to do this. This object has a b
jam
2012/02/14 18:06:08
thanks, I missed that, i'll send you a cl updating
|
| + browser->ShowPageInfo(nav_entry->GetURL(), nav_entry->GetSSL(), true); |
| return TRUE; |
| } else if (event->button == 2) { |
| // When the user middle clicks on the location icon, try to open the |