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

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

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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.mm
===================================================================
--- chrome/browser/ui/cocoa/page_info_bubble_controller.mm (revision 142088)
+++ chrome/browser/ui/cocoa/page_info_bubble_controller.mm (working copy)
@@ -19,6 +19,7 @@
#import "chrome/browser/ui/cocoa/info_bubble_view.h"
#import "chrome/browser/ui/cocoa/info_bubble_window.h"
#import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/cert_store.h"
#include "content/public/browser/page_navigator.h"
@@ -156,14 +157,14 @@
namespace browser {
void ShowPageInfoBubble(gfx::NativeWindow parent,
- Profile* profile,
+ TabContents* tab_contents,
const GURL& url,
const SSLStatus& ssl,
bool show_history,
content::PageNavigator* navigator) {
PageInfoModelBubbleBridge* bridge = new PageInfoModelBubbleBridge();
- PageInfoModel* model =
- new PageInfoModel(profile, url, ssl, show_history, bridge);
+ PageInfoModel* model = new PageInfoModel(
+ tab_contents->profile(), url, ssl, show_history, bridge);
PageInfoBubbleController* controller =
[[PageInfoBubbleController alloc] initWithPageInfoModel:model
modelObserver:bridge

Powered by Google App Engine
This is Rietveld 408576698