| 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
|
|
|