Index: ios/clean/chrome/browser/ui/settings/settings_coordinator.mm |
diff --git a/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm b/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm |
index 3fcc5f910bbdc2b841001ca487f5888346fcfa7d..ffb02557bd4604324633d05acfd57f0099ec615f 100644 |
--- a/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm |
+++ b/ios/clean/chrome/browser/ui/settings/settings_coordinator.mm |
@@ -6,6 +6,7 @@ |
#import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" |
#import "ios/clean/chrome/browser/ui/commands/settings_commands.h" |
+#import "ios/clean/chrome/browser/ui/overlay_service/browser_coordinator+overlay_support.h" |
#import "ios/shared/chrome/browser/ui/browser_list/browser.h" |
#import "ios/shared/chrome/browser/ui/commands/command_dispatcher.h" |
#import "ios/shared/chrome/browser/ui/coordinators/browser_coordinator+internal.h" |
@@ -14,7 +15,10 @@ |
#error "This file requires ARC support." |
#endif |
-@interface SettingsCoordinator ()<SettingsNavigationControllerDelegate> |
+@interface SettingsCoordinator ()<SettingsNavigationControllerDelegate> { |
+ // Backing object for property of same name (in OverlaySupport category). |
+ OverlayQueue* _overlayQueue; |
+} |
@property(nonatomic, strong) SettingsNavigationController* viewController; |
@end |
@@ -31,6 +35,11 @@ - (void)start { |
[super start]; |
} |
+- (void)stop { |
+ [super stop]; |
+ [self overlayWasStopped]; |
+} |
+ |
#pragma mark - SettingsNavigationControllerDelegate |
- (void)closeSettingsAndOpenUrl:(OpenUrlCommand*)command { |
@@ -50,3 +59,19 @@ - (void)closeSettings { |
} |
@end |
+ |
+@implementation SettingsCoordinator (OverlaySupport) |
+ |
+- (BOOL)supportsOverlaying { |
+ return YES; |
+} |
+ |
+- (void)setOverlayQueue:(OverlayQueue*)overlayQueue { |
+ _overlayQueue = overlayQueue; |
+} |
+ |
+- (OverlayQueue*)overlayQueue { |
+ return _overlayQueue; |
+} |
+ |
+@end |