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

Unified Diff: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm

Issue 983833004: Autofill OSX: Rename initWithWebContents -> initWithBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cup_03_add_contents_06
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698