Commit 8b00fe86 authored by Livvie Lin's avatar Livvie Lin Committed by Commit Bot

[iOS] Gate lookalike interstitials on committed interstitials

Lookalike interstitials require committed interstitials to be
enabled, so add a check in tab_helper_util.

Change-Id: Ia991dcb4630b576cc7d59fd0ec2ce5a78c3d4de2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341040Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Livvie Lin <livvielin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795647}
parent a8f99ff0
......@@ -192,7 +192,8 @@ void AttachTabHelpers(web::WebState* web_state, bool for_prerender) {
PageloadForegroundDurationTabHelper::CreateForWebState(web_state);
if (base::FeatureList::IsEnabled(
web::features::kIOSLookalikeUrlNavigationSuggestionsUI)) {
web::features::kIOSLookalikeUrlNavigationSuggestionsUI) &&
base::FeatureList::IsEnabled(web::features::kSSLCommittedInterstitials)) {
LookalikeUrlTabHelper::CreateForWebState(web_state);
LookalikeUrlTabAllowList::CreateForWebState(web_state);
LookalikeUrlContainer::CreateForWebState(web_state);
......
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