Commit 750194c1 authored by Maggie Cai's avatar Maggie Cai Committed by Commit Bot

[IntentHandling] Fix issue with try to launch ARC app with default

activity.

Currently when sign in with GlobalProtect on the web, the code try to
launch with the activity that stored in the app info. However this
causes a bug when try to sign in with GlobalProtect, most likely because
the intent filter is not registered under the default activity. Remove
the default activity assignment to fix this issue.

BUG=1126183

Bug: b/164976626
Change-Id: Ie0a75801d0739a0a2638573bff0a36045c25bd16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2416433
Commit-Queue: Maggie Cai <mxcai@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808246}
parent a6e01ed7
......@@ -763,7 +763,6 @@ void ArcApps::LaunchAppWithIntent(const std::string& app_id,
if (app_info->ready) {
arc::mojom::ActivityNamePtr activity = arc::mojom::ActivityName::New();
activity->package_name = app_info->package_name;
activity->activity_name = app_info->activity;
if (intent->activity_name.has_value() &&
!intent->activity_name.value().empty()) {
activity->activity_name = intent->activity_name.value();
......
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