|
232 | 232 | #import "ios/chrome/browser/shared/public/commands/contextual_panel_entrypoint_iph_commands.h"
|
233 | 233 | #import "ios/chrome/browser/shared/public/commands/contextual_sheet_commands.h"
|
234 | 234 | #import "ios/chrome/browser/shared/public/commands/country_code_picker_commands.h"
|
| 235 | +#import "ios/chrome/browser/shared/public/commands/credential_exchange_commands.h" |
235 | 236 | #import "ios/chrome/browser/shared/public/commands/download_list_commands.h"
|
236 | 237 | #import "ios/chrome/browser/shared/public/commands/drive_file_picker_commands.h"
|
237 | 238 | #import "ios/chrome/browser/shared/public/commands/enhanced_calendar_commands.h"
|
|
332 | 333 | #import "ios/chrome/browser/web/model/web_state_delegate_browser_agent.h"
|
333 | 334 | #import "ios/chrome/browser/web_state_list/model/web_usage_enabler/web_usage_enabler_browser_agent.h"
|
334 | 335 | #import "ios/chrome/browser/web_state_list/model/web_usage_enabler/web_usage_enabler_browser_agent_observer_bridge.h"
|
| 336 | +#import "ios/chrome/browser/webauthn/coordinator/credential_import_coordinator.h" |
335 | 337 | #import "ios/chrome/browser/webui/model/net_export_tab_helper_delegate.h"
|
336 | 338 | #import "ios/chrome/browser/webui/ui_bundled/net_export_coordinator.h"
|
337 | 339 | #import "ios/chrome/browser/whats_new/coordinator/whats_new_coordinator.h"
|
@@ -373,6 +375,7 @@ @interface BrowserCoordinator () <
|
373 | 375 | ContextualPanelEntrypointIPHCommands,
|
374 | 376 | ContextualSheetCommands,
|
375 | 377 | CountryCodePickerCommands,
|
| 378 | + CredentialExchangeCommands, |
376 | 379 | DefaultBrowserGenericPromoCommands,
|
377 | 380 | DefaultPromoNonModalPresentationDelegate,
|
378 | 381 | DownloadListCommands,
|
@@ -741,6 +744,9 @@ @implementation BrowserCoordinator {
|
741 | 744 |
|
742 | 745 | // The coordinator for the Welcome Back promo.
|
743 | 746 | WelcomeBackCoordinator* _welcomeBackCoordinator;
|
| 747 | + |
| 748 | + // The coordinator for the Credential Exchange feature handling the import. |
| 749 | + CredentialImportCoordinator* _credentialImportCoordinator; |
744 | 750 | }
|
745 | 751 |
|
746 | 752 | #pragma mark - ReaderModeBrowserAgentDelegate
|
@@ -1212,7 +1218,8 @@ - (void)createViewControllerDependencies {
|
1212 | 1218 | @protocol(CountryCodePickerCommands),
|
1213 | 1219 | @protocol(WhatsNewCommands),
|
1214 | 1220 | @protocol(GoogleOneCommands),
|
1215 |
| - @protocol(WelcomeBackPromoCommands) |
| 1221 | + @protocol(WelcomeBackPromoCommands), |
| 1222 | + @protocol(CredentialExchangeCommands), |
1216 | 1223 | ];
|
1217 | 1224 |
|
1218 | 1225 | for (Protocol* protocol in protocols) {
|
@@ -1786,6 +1793,9 @@ - (void)stopChildCoordinators {
|
1786 | 1793 | [_BWGCoordinator stop];
|
1787 | 1794 | _BWGCoordinator = nil;
|
1788 | 1795 |
|
| 1796 | + [_credentialImportCoordinator stop]; |
| 1797 | + _credentialImportCoordinator = nil; |
| 1798 | + |
1789 | 1799 | [self hideDriveFilePicker];
|
1790 | 1800 | [self hideContextualSheet];
|
1791 | 1801 | [self dismissEditAddressBottomSheet];
|
@@ -3103,6 +3113,16 @@ - (void)hideCountryCodePicker {
|
3103 | 3113 | _countryCodePickerCoordinator = nil;
|
3104 | 3114 | }
|
3105 | 3115 |
|
| 3116 | +#pragma mark - CredentialExchangeCommands |
| 3117 | + |
| 3118 | +- (void)showCredentialExchangeImport:(NSUUID*)UUID { |
| 3119 | + _credentialImportCoordinator = [[CredentialImportCoordinator alloc] |
| 3120 | + initWithBaseViewController:self.viewController |
| 3121 | + browser:self.browser |
| 3122 | + UUID:UUID]; |
| 3123 | + [_credentialImportCoordinator start]; |
| 3124 | +} |
| 3125 | + |
3106 | 3126 | #pragma mark - BWGCommands
|
3107 | 3127 |
|
3108 | 3128 | - (void)startBWGFlowWithEntryPoint:(bwg::EntryPoint)entryPoint {
|
|
0 commit comments