12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- From: csagan5 <32685696+csagan5@users.noreply.github.com>
- Date: Tue, 25 May 2021 19:46:14 +0200
- Subject: Add flag to disable external intent requests
- ---
- chrome/browser/about_flags.cc | 3 +++
- chrome/browser/flag_descriptions.cc | 6 ++++++
- chrome/browser/flag_descriptions.h | 3 +++
- 3 files changed, 12 insertions(+)
- diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
- --- a/chrome/browser/about_flags.cc
- +++ b/chrome/browser/about_flags.cc
- @@ -2652,6 +2652,9 @@ const FeatureEntry kFeatureEntries[] = {
- flag_descriptions::kWebrtcCaptureMultiChannelApmName,
- flag_descriptions::kWebrtcCaptureMultiChannelApmDescription, kOsAll,
- FEATURE_VALUE_TYPE(features::kWebRtcEnableCaptureMultiChannelApm)},
- + {"disable-external-intent-requests", flag_descriptions::kDisableExternalIntentRequestsName,
- + flag_descriptions::kDisableExternalIntentRequestsDescription, kOsAll,
- + SINGLE_DISABLE_VALUE_TYPE("disable-external-intent-requests")},
- {"disable-webrtc-hw-decoding", flag_descriptions::kWebrtcHwDecodingName,
- flag_descriptions::kWebrtcHwDecodingDescription, kOsAndroid | kOsCrOS,
- SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)},
- diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
- --- a/chrome/browser/flag_descriptions.cc
- +++ b/chrome/browser/flag_descriptions.cc
- @@ -3099,6 +3099,12 @@ const char kIntentBlockExternalFormRedirectsNoGestureDescription[] =
- "Require a user gesture that triggered a form submission in order to "
- "allow for redirecting to an external intent.";
-
- +const char kDisableExternalIntentRequestsName[] =
- + "Never forward URL requests to external intents";
- +const char kDisableExternalIntentRequestsDescription[] =
- + "URL requests will never"
- + "allow for redirecting to an external intent.";
- +
- const char kInterestFeedContentSuggestionsDescription[] =
- "Use the interest feed to render content suggestions. Currently "
- "content "
- diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
- --- a/chrome/browser/flag_descriptions.h
- +++ b/chrome/browser/flag_descriptions.h
- @@ -1804,6 +1804,9 @@ extern const char kInstantStartDescription[];
- extern const char kIntentBlockExternalFormRedirectsNoGestureName[];
- extern const char kIntentBlockExternalFormRedirectsNoGestureDescription[];
-
- +extern const char kDisableExternalIntentRequestsName[];
- +extern const char kDisableExternalIntentRequestsDescription[];
- +
- extern const char kInterestFeedContentSuggestionsName[];
- extern const char kInterestFeedContentSuggestionsDescription[];
-
- --
- 2.17.1
|