[Offline pages] Use renovations in background loader.
Integrates renovations into the background loader. Use of renovations
is hidden behind a feature flag. When enabled, the renovation
framework will select renovations to run in a page, then inject their
scripts into the page before snapshotting in the background
offliner. At this point, only a renovation for unfolding sections in
mobile Wikipedia pages is implemented.
Design doc:
https://docs.google.com/document/d/1WuwRJaxBKAwVpeAHG0xhq5uRxMTB-j4LFleT4QEqANU
Bug: 736933, 733366
Change-Id: Ia97c32341952f2fce8f5c5a9225e5dc2054c78b7
Reviewed-on: https://chromium-review.googlesource.com/595011
Commit-Queue: Yafei Duan <[email protected]>
Reviewed-by: Filip Gorski <[email protected]>
Reviewed-by: Cathy Li <[email protected]>
Cr-Commit-Position: refs/heads/master@{#492777}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index bbbed59..9779f24 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2250,11 +2250,13 @@
}
deps += [
"//components/offline_pages/content/background_loader",
+ "//components/offline_pages/content/renovations",
"//components/offline_pages/core",
"//components/offline_pages/core/background:background_offliner",
"//components/offline_pages/core/downloads:offline_pages_ui_adapter",
"//components/offline_pages/core/prefetch",
"//components/offline_pages/core/recent_tabs",
+ "//components/offline_pages/core/renovations",
"//components/offline_pages/core/request_header:request_header",
]
}