Add chrome://flags#check-offline-capability
Bug: 965802
Change-Id: Id0008fd9418110c3d1d4590c7ca035b5317d7aff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2494288
Commit-Queue: Asami Doi <[email protected]>
Reviewed-by: Makoto Shimazu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#822048}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 4648887..65a6883 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -6695,6 +6695,10 @@
kAutofillEnablePasswordInfoBarAccountIndicationFooter)},
#endif
+ {"check-offline-capability", flag_descriptions::kCheckOfflineCapabilityName,
+ flag_descriptions::kCheckOfflineCapabilityDescription, kOsAll,
+ FEATURE_VALUE_TYPE(blink::features::kCheckOfflineCapability)},
+
// 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
diff --git a/chrome/browser/flag-metadata.json b/chrome/browser/flag-metadata.json
index 128602e..25b7187a 100644
--- a/chrome/browser/flag-metadata.json
+++ b/chrome/browser/flag-metadata.json
@@ -456,6 +456,11 @@
"expiry_milestone": 91
},
{
+ "name": "check-offline-capability",
+ "owners": [ "asamidoi", "//content/browser/service_worker/OWNERS" ],
+ "expiry_milestone": 89
+ },
+ {
"name": "chrome-cleanup-scan-completed-notification",
"owners": ["rainhard", "msramek",
"[email protected]"],
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 2f493c2..46bff70 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -329,6 +329,11 @@
"eligibility requirements for showing app banners, such as having a "
"manifest, are met.";
+const char kCheckOfflineCapabilityName[] = "Check offline capability for PWAs";
+const char kCheckOfflineCapabilityDescription[] =
+ "Use advanced offline capability check to decide whether the browser "
+ "displays install prompts for PWAs.";
+
const char kContextMenuGoogleLensChipName[] =
"Google Lens powered image search for surfaced as a chip below the context "
"menu.";
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 50ec80d..cb1384de 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -200,6 +200,9 @@
extern const char kBypassAppBannerEngagementChecksName[];
extern const char kBypassAppBannerEngagementChecksDescription[];
+extern const char kCheckOfflineCapabilityName[];
+extern const char kCheckOfflineCapabilityDescription[];
+
extern const char kContextMenuGoogleLensChipName[];
extern const char kContextMenuGoogleLensChipDescription[];