Index: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm |
index 542441543c31948a3d4a532c86957d4ec2d8d132..c81c058ee17eda459ae7929b391a844ab82867d6 100644 |
--- a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm |
+++ b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm |
@@ -38,9 +38,8 @@ CardUnmaskPromptView* CardUnmaskPromptView::CreateAndShow( |
CardUnmaskPromptViewBridge::CardUnmaskPromptViewBridge( |
CardUnmaskPromptController* controller) |
: controller_(controller) { |
- view_controller_.reset([[CardUnmaskPromptViewCocoa alloc] |
- initWithWebContents:controller_->GetWebContents() |
- bridge:this]); |
+ view_controller_.reset( |
+ [[CardUnmaskPromptViewCocoa alloc] initWithBridge:this]); |
// Setup the constrained window that will show the view. |
base::scoped_nsobject<NSWindow> window([[ConstrainedWindowCustomWindow alloc] |
@@ -119,15 +118,12 @@ void CardUnmaskPromptViewBridge::PerformClose() { |
} |
} |
-- (id)initWithWebContents:(content::WebContents*)webContents |
- bridge:(autofill::CardUnmaskPromptViewBridge*)bridge { |
- DCHECK(webContents); |
+- (id)initWithBridge:(autofill::CardUnmaskPromptViewBridge*)bridge { |
DCHECK(bridge); |
- if ((self = [super initWithNibName:nil bundle:nil])) { |
- webContents_ = webContents; |
+ if ((self = [super initWithNibName:nil bundle:nil])) |
bridge_ = bridge; |
- } |
+ |
return self; |
} |