Commit 13cb3f02 authored by Nazerke's avatar Nazerke Committed by Commit Bot

[iOS][coordinator] Autofill Add Credit Card Coordinator.

Removing the left |self.browserState| from the starting function in this
coordinator.

Change-Id: I02eaaed2d63a0fcaa2089786a6ff220fc1aa4c29
Bug: 1047881, 1029346
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2128072
Commit-Queue: Nazerke Kalidolda <nazerke@google.com>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754904}
parent 50ce2ce5
......@@ -12,6 +12,10 @@
// The coordinator for add credit card screen.
@interface AutofillAddCreditCardCoordinator : ChromeCoordinator
// Use -initWithBaseViewController:browser:
- (instancetype)initWithBaseViewController:(UIViewController*)viewController
NS_UNAVAILABLE;
// Use -initWithBaseViewController:browser:
- (instancetype)initWithBaseViewController:(UIViewController*)viewController
browserState:(ChromeBrowserState*)browserState
......
......@@ -8,6 +8,7 @@
#import "components/autofill/ios/browser/personal_data_manager_observer_bridge.h"
#include "ios/chrome/browser/autofill/personal_data_manager_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#import "ios/chrome/browser/main/browser.h"
#import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h"
#import "ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h"
#import "ios/chrome/browser/ui/settings/autofill/autofill_add_credit_card_mediator.h"
......@@ -52,7 +53,7 @@
// one so the user can add credit cards.
autofill::PersonalDataManager* personalDataManager =
autofill::PersonalDataManagerFactory::GetForBrowserState(
self.browserState->GetOriginalChromeBrowserState());
self.browser->GetBrowserState()->GetOriginalChromeBrowserState());
self.mediator = [[AutofillAddCreditCardMediator alloc]
initWithDelegate:self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment