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

Unified Diff: chrome/browser/ui/cocoa/page_info_bubble_controller.h

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 6 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/cocoa/page_info_bubble_controller.h
===================================================================
--- chrome/browser/ui/cocoa/page_info_bubble_controller.h (revision 142088)
+++ chrome/browser/ui/cocoa/page_info_bubble_controller.h (working copy)
@@ -13,6 +13,7 @@
namespace content {
class PageNavigator;
+class WebContents;
}
// This NSWindowController subclass manages the InfoBubbleWindow and view that
@@ -28,6 +29,9 @@
// The certificate ID for the page, 0 if the page is not over HTTPS.
int certID_;
+ // The WebContents that created the bubble.
+ content::WebContents* webContents_;
+
// Used for loading pages.
content::PageNavigator* navigator_;
}
@@ -41,6 +45,7 @@
- (id)initWithPageInfoModel:(PageInfoModel*)model
modelObserver:(PageInfoModelObserver*)bridge
parentWindow:(NSWindow*)parentWindow
+ webContents:(content::WebContents*)webContents
navigator:(content::PageNavigator*)navigator;
« no previous file with comments | « chrome/browser/ui/cocoa/certificate_viewer_mac.mm ('k') | chrome/browser/ui/cocoa/page_info_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698