Commit afda9517 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Fix BadgeButton's action dispatching

Bug: 976901
Change-Id: I0751d935e2aa0307bd354b888e78408810d1f195
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1746601
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Auto-Submit: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686150}
parent b2090049
......@@ -24,7 +24,7 @@
- (instancetype)initWithActionHandler:(BadgeButtonActionHandler*)actionHandler {
self = [super init];
if (self) {
_actionHandler = self.actionHandler;
_actionHandler = actionHandler;
}
return self;
}
......
......@@ -169,6 +169,8 @@ const int kLocationAuthorizationStatusCount = 5;
// Create BadgeMediator and set the viewController as its consumer.
if (IsInfobarUIRebootEnabled()) {
self.badgeViewController = [[BadgeViewController alloc] init];
self.badgeViewController.dispatcher =
static_cast<id<InfobarCommands>>(self.dispatcher);
[self.viewController addChildViewController:self.badgeViewController];
[self.viewController setBadgeView:self.badgeViewController.view];
[self.badgeViewController
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment