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

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

Issue 2936773003: [ios clean] Toolbar accessibility and showcase egtests (Closed)
Patch Set: Rename A11y string Created 3 years, 6 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/showcase/toolbar/BUILD.gn ('k') | ios/showcase/toolbar/sc_toolbar_egtest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20de4f8dbe42ccbc2cb2906ad31490c9209e54f1..23fbaf2f0f0700b1074bbcf023c79801824d00f8 100644
--- a/ios/showcase/toolbar/sc_toolbar_coordinator.mm
+++ b/ios/showcase/toolbar/sc_toolbar_coordinator.mm
@@ -44,11 +44,11 @@ CGFloat kToolbarHeight = 50.0f;
containerView.backgroundColor = [UIColor redColor];
containerView.translatesAutoresizingMaskIntoConstraints = NO;
- ToolbarViewController* toolbarViewController =
- [[ToolbarViewController alloc] init];
- toolbarViewController.dispatcher =
+ id dispatcher =
static_cast<id<NavigationCommands, TabGridCommands, TabStripCommands,
ToolsMenuCommands>>(self.alerter);
+ ToolbarViewController* toolbarViewController =
+ [[ToolbarViewController alloc] initWithDispatcher:dispatcher];
[containerViewController addChildViewController:toolbarViewController];
toolbarViewController.view.frame = containerView.frame;
[containerView addSubview:toolbarViewController.view];
« no previous file with comments | « ios/showcase/toolbar/BUILD.gn ('k') | ios/showcase/toolbar/sc_toolbar_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698