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

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

Issue 9390015: Get rid of ShowPageInfo on WebContents and WebContentsDelegate. Chrome shouldn't have to go throu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix gtk+mac Created 8 years, 10 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
===================================================================
--- 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

Powered by Google App Engine
This is Rietveld 408576698