ResourceLoadingHints turnon work (flag and bug fix)
Adds about:flags support for ResourceLoadingHints and fixes an
issue for determining the initial PreviewsState (where we need
to "allow" ResourceLoadingHints preview even if no hints loaded
for it yet (will be checked at commit time).
Bug: 871795
Change-Id: I52529a29dabf6e5be23c49bf7f597783418d053b
Reviewed-on: https://chromium-review.googlesource.com/1187574
Commit-Queue: Doug Arnett <[email protected]>
Reviewed-by: Ryan Sturm <[email protected]>
Cr-Commit-Position: refs/heads/master@{#586374}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index f609fd0..0ebf23e 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2259,6 +2259,10 @@
{"enable-noscript-previews", flag_descriptions::kEnableNoScriptPreviewsName,
flag_descriptions::kEnableNoScriptPreviewsDescription, kOsAll,
FEATURE_VALUE_TYPE(previews::features::kNoScriptPreviews)},
+ {"enable-resource-loading-hints",
+ flag_descriptions::kEnableResourceLoadingHintsName,
+ flag_descriptions::kEnableResourceLoadingHintsDescription, kOsAll,
+ FEATURE_VALUE_TYPE(previews::features::kResourceLoadingHints)},
{"enable-optimization-hints",
flag_descriptions::kEnableOptimizationHintsName,
flag_descriptions::kEnableOptimizationHintsDescription, kOsAll,