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

Unified Diff: ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.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/browser/ui/tab_grid/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm b/ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm
index 938f9009622a1acbc418b10396facc1e19c3309f..d36633a26fc2bc2da75b0ab4687ed845659b670f 100644
--- a/ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/tab_grid/tab_grid_coordinator.mm
@@ -13,6 +13,7 @@
#include "base/strings/sys_string_conversions.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#import "ios/clean/chrome/browser/browser_coordinator+internal.h"
+#import "ios/clean/chrome/browser/model/browser.h"
#import "ios/clean/chrome/browser/ui/commands/settings_commands.h"
#import "ios/clean/chrome/browser/ui/commands/tab_commands.h"
#import "ios/clean/chrome/browser/ui/commands/tab_grid_commands.h"
@@ -47,11 +48,11 @@
#pragma mark - Properties
-- (void)setBrowserState:(ios::ChromeBrowserState*)browserState {
- [super setBrowserState:browserState];
+- (void)setBrowser:(Browser*)browser {
+ [super setBrowser:browser];
for (int i = 0; i < 7; i++) {
- web::WebState::CreateParams webStateCreateParams(browserState);
+ web::WebState::CreateParams webStateCreateParams(browser->browser_state());
std::unique_ptr<web::WebState> webState =
web::WebState::Create(webStateCreateParams);
_webStates.push_back(std::move(webState));
@@ -118,7 +119,8 @@
}
- (void)createNewTabAtIndexPath:(NSIndexPath*)indexPath {
- web::WebState::CreateParams webStateCreateParams(self.browserState);
+ web::WebState::CreateParams webStateCreateParams(
+ self.browser->browser_state());
std::unique_ptr<web::WebState> webState =
web::WebState::Create(webStateCreateParams);
_webStates.push_back(std::move(webState));
« no previous file with comments | « ios/clean/chrome/browser/ui/tab_grid/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698