Commit 383b2432 authored by Rohit Rao's avatar Rohit Rao Committed by Commit Bot

[ios] Fixes BOOL/bool mismatches in AppLauncher and QrCode.

BOOL and bool are equivalent on arm64, but they map to different underlying
types on other platforms, such as Mac Catalyst.

BUG=1142431

Change-Id: I871e83e958ddc4619da634a972036599fc6d02db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498801Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820742}
parent 0964fcb1
......@@ -144,7 +144,7 @@ void AppLauncherTabHelper::RequestToLaunchApp(const GURL& url,
if (!delegate_)
return;
delegate_->ShowRepeatedAppLaunchAlert(
this, base::BindOnce(^(BOOL user_allowed) {
this, base::BindOnce(^(bool user_allowed) {
if (!weak_this.get())
return;
if (user_allowed && weak_this->delegate()) {
......
......@@ -55,7 +55,7 @@ NSString* const kGenerateQrCodeActivityType =
}
- (BOOL)canPerformWithActivityItems:(NSArray*)activityItems {
return self.handler;
return self.handler != nil;
}
+ (UIActivityCategory)activityCategory {
......
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