Commit 0521cee6 authored by rajendrant's avatar rajendrant Committed by Commit Bot

LazyLoad: Disable lazyload feature check in ShouldAllowLazyLoad

Change-Id: Ic6e9f1ab01521538b4142fae8348777c9770107c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722197Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: rajendrant <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681711}
parent 1fe9f113
......@@ -3274,11 +3274,8 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
}
}
web_prefs->lazy_load_enabled =
(base::FeatureList::IsEnabled(features::kLazyFrameLoading) ||
base::FeatureList::IsEnabled(features::kLazyImageLoading)) &&
(!contents || !contents->GetDelegate() ||
contents->GetDelegate()->ShouldAllowLazyLoad());
web_prefs->lazy_load_enabled = !contents || !contents->GetDelegate() ||
contents->GetDelegate()->ShouldAllowLazyLoad();
if (base::FeatureList::IsEnabled(features::kLazyFrameLoading)) {
const char* param_name =
......
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