Add switch to skip optimizations hints checks for defer previews

Add the switch to skip optimizations hints checks for defer previews.
Rest of the checks (ECT, blocklist etc.) are still executed.
This allows us to locally test the preview.

Change-Id: I31d3b24f794ff79d0ebf27a4013684698c5a3a3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1702773
Commit-Queue: Tarun Bansal <[email protected]>
Reviewed-by: Doug Arnett <[email protected]>
Cr-Commit-Position: refs/heads/master@{#678973}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index e5e5672..12a4f04 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4110,6 +4110,13 @@
     {"enable-defer-all-script", flag_descriptions::kEnableDeferAllScriptName,
      flag_descriptions::kEnableDeferAllScriptDescription, kOsAll,
      FEATURE_VALUE_TYPE(previews::features::kDeferAllScriptPreviews)},
+    {"enable-defer-all-script-without-optimization-hints",
+     flag_descriptions::kEnableDeferAllScriptWithoutOptimizationHintsName,
+     flag_descriptions::
+         kEnableDeferAllScriptWithoutOptimizationHintsDescription,
+     kOsAll,
+     SINGLE_VALUE_TYPE(
+         previews::switches::kEnableDeferAllScriptWithoutOptimizationHints)},
 
 #if defined(OS_CHROMEOS)
     {"enable-assistant-routines",