[iOS] Adding commands the Google services settings
Adding list of commands for each switch to toggle from the Google services settings (see the screenshot). To associate those commands to each UISwitch, SyncSwitchItem.commandID is added. GoogleServicesSettingsViewController calls the right command on its |commandHandler| when a switched is toggled. GoogleServicesSettingsMediator implements GoogleServicesSettingsCommandHandler to modify the model when the user toggles the switches. The coordinator sets the mediator to be the command handler for the view controller. Screenshot: https://drive.google.com/open?id=1hvi5LyGjBDODkRQymvC5sbUjSN9tafFz This patch is to replace: crrev.com/c/1146730 Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: Ica05f255bc2af154033a53cd1a1365c43775f9c7 Reviewed-on: https://chromium-review.googlesource.com/1155587 Commit-Queue: Jérôme Lebel <jlebel@chromium.org> Reviewed-by:Mark Cogan <marq@chromium.org> Cr-Commit-Position: refs/heads/master@{#579365}
Showing
Please register or sign in to comment