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,13 +712,11 @@ ContentBrowserClientImpl::CreateThrottlesForNavigation(
throttles.push_back(
GetSafeBrowsingService()->CreateSafeBrowsingNavigationThrottle(
handle));
if (handle->IsInMainFrame()) {
throttles.push_back(
navigation_interception::InterceptNavigationDelegate::
CreateThrottleFor(
handle, navigation_interception::SynchronyMode::kAsync));
}
}
throttles.push_back(
navigation_interception::InterceptNavigationDelegate::CreateThrottleFor(
handle, navigation_interception::SynchronyMode::kAsync));
}
#endif
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