| Index: chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc
|
| diff --git a/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc b/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc
|
| index 090a61667999f8e75e7509cb36ac96ed49b3db09..f6fd12ad93a54d021abb85c5daeecc769f62731c 100644
|
| --- a/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc
|
| +++ b/chrome/browser/chromeos/arc/arc_external_protocol_dialog.cc
|
| @@ -194,6 +194,13 @@ bool RunArcExternalProtocolDialog(const GURL& url,
|
| int routing_id,
|
| ui::PageTransition page_transition,
|
| bool has_user_gesture) {
|
| + // Handle client-side redirections. Forwarding such navigations to ARC is
|
| + // better than just showing the "can't open" dialog.
|
| + // TODO(djacobo): Check if doing this in arc::ShouldIgnoreNavigation is safe,
|
| + // and move it to the function if it is. (b/32442730#comment3)
|
| + page_transition = ui::PageTransitionFromInt(
|
| + page_transition & ~ui::PAGE_TRANSITION_CLIENT_REDIRECT);
|
| +
|
| // Try to forward <form> submissions to ARC when possible.
|
| constexpr bool kAllowFormSubmit = true;
|
| if (ShouldIgnoreNavigation(page_transition, kAllowFormSubmit))
|
|
|