Commit d02003b2 authored by Nazerke's avatar Nazerke Committed by Commit Bot

[iOS][coordinator] Modernize Signin Coordinator and its children.

This CL modernizes the SigninCoordinator, AddAccountSigninCoordinator,
AdvancedSettingsSigninCoordinator, UserSigninCoordinator to use
self.browser to get browserstate value.

These coordinators are already using browser in initializers.

Bug: 1029346, 1054825, 1054824, 1054823, 1054822.
Change-Id: I37a4aee333d49efc4d24fed23ffb3d1686bafb7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2071939Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Nazerke Kalidolda <nazerke@google.com>
Cr-Commit-Position: refs/heads/master@{#744635}
parent 73791035
...@@ -106,10 +106,12 @@ using signin_metrics::PromoAction; ...@@ -106,10 +106,12 @@ using signin_metrics::PromoAction;
self.browser->GetBrowserState(), self); self.browser->GetBrowserState(), self);
signin::IdentityManager* identityManager = signin::IdentityManager* identityManager =
IdentityManagerFactory::GetForBrowserState(self.browserState); IdentityManagerFactory::GetForBrowserState(
self.browser->GetBrowserState());
self.mediator = [[AddAccountSigninMediator alloc] self.mediator = [[AddAccountSigninMediator alloc]
initWithIdentityInteractionManager:self.identityInteractionManager initWithIdentityInteractionManager:self.identityInteractionManager
prefService:self.browserState->GetPrefs() prefService:self.browser->GetBrowserState()
->GetPrefs()
identityManager:identityManager]; identityManager:identityManager];
self.mediator.delegate = self; self.mediator.delegate = self;
[self.mediator handleSigninIntent:self.signinIntent [self.mediator handleSigninIntent:self.signinIntent
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
class Browser; class Browser;
@class ChromeIdentity; @class ChromeIdentity;
@protocol ApplicationCommands;
@protocol BrowsingDataCommands;
@protocol SyncPresenter; @protocol SyncPresenter;
// Called when the sign-in dialog is closed. // Called when the sign-in dialog is closed.
......
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