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

Unified Diff: ios/clean/chrome/browser/ui/tools/tools_coordinator.mm

Issue 2798833003: [ios clean] Updates all BrowserCoordinator to the new rule (Closed)
Patch Set: Fix unittests 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 | « ios/clean/chrome/browser/ui/tools/BUILD.gn ('k') | ios/clean/chrome/browser/ui/web_contents/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm b/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
index b76dd59426fef7c91689ab058934cc7ac9521ac2..f66881599a26d2271f625480c3a859a15a8eaa88 100644
--- a/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
@@ -8,7 +8,6 @@
#import "ios/clean/chrome/browser/ui/presenters/menu_presentation_controller.h"
#import "ios/clean/chrome/browser/ui/tools/menu_view_controller.h"
#import "ios/clean/chrome/browser/ui/tools/tools_mediator.h"
-#import "ios/shared/chrome/browser/coordinator_context/coordinator_context.h"
#import "ios/shared/chrome/browser/ui/browser_list/browser.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -16,37 +15,26 @@
#endif
@interface ToolsCoordinator ()<UIViewControllerTransitioningDelegate>
-@property(nonatomic, strong) MenuViewController* menuViewController;
+@property(nonatomic, strong) MenuViewController* viewController;
@property(nonatomic, strong) ToolsMediator* mediator;
@end
@implementation ToolsCoordinator
-@synthesize menuViewController = _menuViewController;
+@synthesize viewController = _viewController;
@synthesize mediator = _mediator;
#pragma mark - BrowserCoordinator
- (void)start {
- self.menuViewController = [[MenuViewController alloc] init];
- self.menuViewController.modalPresentationStyle = UIModalPresentationCustom;
- self.menuViewController.transitioningDelegate = self;
- self.menuViewController.dispatcher =
- static_cast<id>(self.browser->dispatcher());
- _mediator = [[ToolsMediator alloc] initWithConsumer:self.menuViewController];
+ self.viewController = [[MenuViewController alloc] init];
+ self.viewController.modalPresentationStyle = UIModalPresentationCustom;
+ self.viewController.transitioningDelegate = self;
+ self.viewController.dispatcher = static_cast<id>(self.browser->dispatcher());
+ self.mediator = [[ToolsMediator alloc] initWithConsumer:self.viewController];
- [self.context.baseViewController presentViewController:self.menuViewController
- animated:self.context.animated
- completion:nil];
[super start];
}
-- (void)stop {
- [super stop];
- [self.menuViewController.presentingViewController
- dismissViewControllerAnimated:self.context.animated
- completion:nil];
-}
-
#pragma mark - UIViewControllerTransitioningDelegate
- (id<UIViewControllerAnimatedTransitioning>)
« no previous file with comments | « ios/clean/chrome/browser/ui/tools/BUILD.gn ('k') | ios/clean/chrome/browser/ui/web_contents/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698