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

Unified Diff: ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.mm

Issue 2735973003: Make BrowserCoordinator use a Browser instead of a BrowserState (Closed)
Patch Set: Remove unused import 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 | « ios/clean/chrome/app/steps/BUILD.gn ('k') | ios/clean/chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.mm
diff --git a/ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.mm b/ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.mm
index b75efef45a2390c11cd2df4ca5f46954e15ceb1d..b592bf2241f28261416af4e8b3771923ab6426ac 100644
--- a/ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.mm
+++ b/ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.mm
@@ -11,6 +11,8 @@
#import "base/supports_user_data.h"
#import "ios/clean/chrome/app/application_state.h"
#import "ios/clean/chrome/browser/browser_coordinator+internal.h"
+#import "ios/clean/chrome/browser/model/browser.h"
+#import "ios/clean/chrome/browser/model/browser_list.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -43,7 +45,8 @@ const char kRootCoordinatorContainerKey[] = "root_coordinator";
}
- (void)runInState:(ApplicationState*)state {
- self.browserState = state.browserState;
+ self.browser =
+ BrowserList::FromBrowserState(state.browserState)->CreateNewBrowser();
[self start];
state.window.rootViewController = self.viewController;
« no previous file with comments | « ios/clean/chrome/app/steps/BUILD.gn ('k') | ios/clean/chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698