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

Unified Diff: ios/chrome/app/main_controller.mm

Issue 2804853002: Cancels payment request when Settings is tapped, and opens the Autofill settings page. (Closed)
Patch Set: Remove more strongSelf checks. Created 3 years, 8 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 | « no previous file | ios/chrome/browser/payments/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/main_controller.mm
diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
index 8a79c1c182460c740091136e3cb954c7ae19fb91..25c25d81a5e68f0154c9c3d02a013151cf9ed176 100644
--- a/ios/chrome/app/main_controller.mm
+++ b/ios/chrome/app/main_controller.mm
@@ -1521,6 +1521,9 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
case IDC_SHOW_ADD_ACCOUNT:
[self showAddAccount];
break;
+ case IDC_SHOW_AUTOFILL_SETTINGS:
+ [self showAutofillSettings];
+ break;
default:
// Unknown commands get dropped with a warning.
NOTREACHED() << "Unknown command id " << command;
@@ -2013,6 +2016,18 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
completion:nil];
}
+- (void)showAutofillSettings {
+ if (_settingsNavigationController)
+ return;
+ _settingsNavigationController.reset([SettingsNavigationController
+ newAutofillController:_mainBrowserState
+ delegate:self]);
+ [[self topPresentedViewController]
+ presentViewController:_settingsNavigationController
+ animated:YES
+ completion:nil];
+}
+
- (void)showReportAnIssue {
if (_settingsNavigationController)
return;
« no previous file with comments | « no previous file | ios/chrome/browser/payments/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698