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

Unified Diff: ios/clean/chrome/browser/browser_coordinator.mm

Issue 2750003004: Add a "started" protected property to BrowserCoordinator. (Closed)
Patch Set: Created 3 years, 9 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/clean/chrome/browser/browser_coordinator+internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/browser_coordinator.mm
diff --git a/ios/clean/chrome/browser/browser_coordinator.mm b/ios/clean/chrome/browser/browser_coordinator.mm
index 828ae8d4f6c66cd4e69feb3565c4e17be8c95f16..f3f79a7fb4e0dd747eff5eb5dfe0411f609f4413 100644
--- a/ios/clean/chrome/browser/browser_coordinator.mm
+++ b/ios/clean/chrome/browser/browser_coordinator.mm
@@ -21,6 +21,7 @@
NSMutableSet<BrowserCoordinator*>* childCoordinators;
// Parent coordinator of this object, if any.
@property(nonatomic, readwrite, weak) BrowserCoordinator* parentCoordinator;
+@property(nonatomic, readwrite) BOOL started;
@property(nonatomic, readwrite) BOOL overlaying;
@end
@@ -30,6 +31,7 @@
@synthesize browser = _browser;
@synthesize childCoordinators = _childCoordinators;
@synthesize parentCoordinator = _parentCoordinator;
+@synthesize started = _started;
@synthesize overlaying = _overlaying;
- (instancetype)init {
@@ -43,11 +45,13 @@
#pragma mark - Public API
- (void)start {
+ self.started = YES;
[self.parentCoordinator childCoordinatorDidStart:self];
}
- (void)stop {
[self.parentCoordinator childCoordinatorWillStop:self];
+ self.started = NO;
}
@end
« no previous file with comments | « no previous file | ios/clean/chrome/browser/browser_coordinator+internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698