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

Unified Diff: ios/showcase/toolbar/sc_toolbar_coordinator.mm

Issue 2800313002: [ios] RootCoordinator and view controller. (Closed)
Patch Set: 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
Index: ios/showcase/toolbar/sc_toolbar_coordinator.mm
diff --git a/ios/showcase/toolbar/sc_toolbar_coordinator.mm b/ios/showcase/toolbar/sc_toolbar_coordinator.mm
index 312aeab45f72d127907dc8b0aa8ebf3be8c666a2..db59fb915a2cbffa7ad689c071fdaa8ef2968e60 100644
--- a/ios/showcase/toolbar/sc_toolbar_coordinator.mm
+++ b/ios/showcase/toolbar/sc_toolbar_coordinator.mm
@@ -5,6 +5,7 @@
#import "ios/showcase/toolbar/sc_toolbar_coordinator.h"
#import "ios/clean/chrome/browser/ui/commands/navigation_commands.h"
+#import "ios/clean/chrome/browser/ui/commands/tab_grid_commands.h"
#import "ios/clean/chrome/browser/ui/commands/tools_menu_commands.h"
#import "ios/clean/chrome/browser/ui/toolbar/toolbar_view_controller.h"
#import "ios/showcase/common/protocol_alerter.h"
@@ -44,7 +45,8 @@ CGFloat kToolbarHeight = 50.0f;
ToolbarViewController* toolbarViewController =
[[ToolbarViewController alloc] init];
toolbarViewController.dispatcher =
- static_cast<id<ToolsMenuCommands, NavigationCommands>>(self.alerter);
+ static_cast<id<TabGridCommands, ToolsMenuCommands, NavigationCommands>>(
+ self.alerter);
[containerViewController addChildViewController:toolbarViewController];
toolbarViewController.view.frame = containerView.frame;
[containerView addSubview:toolbarViewController.view];

Powered by Google App Engine
This is Rietveld 408576698