[LiteVideo] Add Chrome flags to enable LiteVideos.
This change adds Chrome flags for the LiteVideo optimization and to
force override the decision logic. This also adds a switch to ignore
just the network settings to make the testing now and in the future
easier.
Bug: 1102904
Change-Id: I47e6c005e434e729652998804fcb6233d42c370f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2284978
Commit-Queue: Michael Crouse <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Sophie Chang <[email protected]>
Reviewed-by: Tarun Bansal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#786358}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index bc34575..6c2ee98 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -33,6 +33,7 @@
#include "chrome/browser/browser_features.h"
#include "chrome/browser/chromeos/android_sms/android_sms_switches.h"
#include "chrome/browser/flag_descriptions.h"
+#include "chrome/browser/lite_video/lite_video_switches.h"
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
#include "chrome/browser/net/stub_resolver_config_reader.h"
#include "chrome/browser/net/system_network_context_manager.h"
@@ -85,6 +86,7 @@
#include "components/feed/feed_feature_list.h"
#include "components/flags_ui/feature_entry.h"
#include "components/flags_ui/feature_entry_macros.h"
+#include "components/flags_ui/flags_state.h"
#include "components/flags_ui/flags_storage.h"
#include "components/flags_ui/flags_ui_metrics.h"
#include "components/flags_ui/flags_ui_switches.h"
@@ -5804,6 +5806,15 @@
kOsAll,
SINGLE_VALUE_TYPE(switches::kEnableBluetoothSerialPortProfileInSerialApi)},
+ {"enable-lite-video", flag_descriptions::kLiteVideoName,
+ flag_descriptions::kLiteVideoDescription, kOsAll,
+ FEATURE_VALUE_TYPE(features::kLiteVideo)},
+
+ {"lite-video-force-override-decision",
+ flag_descriptions::kLiteVideoForceOverrideDecisionName,
+ flag_descriptions::kLiteVideoForceOverrideDecisionDescription, kOsAll,
+ SINGLE_VALUE_TYPE(lite_video::switches::kLiteVideoForceOverrideDecision)}
+
// NOTE: Adding a new flag requires adding a corresponding entry to enum
// "LoginCustomFlags" in tools/metrics/histograms/enums.xml. See "Flag
// Histograms" in tools/metrics/histograms/README.md (run the