Commit d8aa6559 authored by Adithya Srinivasan's avatar Adithya Srinivasan Committed by Commit Bot

WebLayer: Move InterceptNavigationDelegate throttle initialization

Throttle isn't safe browsing related and doesn't needed to be guarded
by a safebrowsing flag check.

Change-Id: Ie59c7a9c87141b378cecc5ba4befdb97d21a2ca2
Bug: 1141329
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490168Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819836}
parent 348029c9
...@@ -712,14 +712,12 @@ ContentBrowserClientImpl::CreateThrottlesForNavigation( ...@@ -712,14 +712,12 @@ ContentBrowserClientImpl::CreateThrottlesForNavigation(
throttles.push_back( throttles.push_back(
GetSafeBrowsingService()->CreateSafeBrowsingNavigationThrottle( GetSafeBrowsingService()->CreateSafeBrowsingNavigationThrottle(
handle)); handle));
if (handle->IsInMainFrame()) { }
throttles.push_back( throttles.push_back(
navigation_interception::InterceptNavigationDelegate:: navigation_interception::InterceptNavigationDelegate::CreateThrottleFor(
CreateThrottleFor(
handle, navigation_interception::SynchronyMode::kAsync)); handle, navigation_interception::SynchronyMode::kAsync));
} }
}
}
#endif #endif
return throttles; return throttles;
} }
......
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