Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: chrome/browser/about_flags.cc

Issue 1455333004: Add "q=preview" directive on main frame requests on poor networks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deciderAddLoFiHeader
Patch Set: limit flag channels Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 96aa9d340dd8ff37185f7f12be4b03ba44ba1304..85de60dd6fc32c817530dc40c21413ed1c270e13 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1783,6 +1783,12 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_DESCRIPTION,
kOsAll,
MULTI_VALUE_TYPE(kDataReductionProxyLoFiChoices)},
+ {"enable-data-reduction-proxy-lo-fi-preview",
+ IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_LO_FI_PREVIEW_NAME,
+ IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_LO_FI_PREVIEW_DESCRIPTION,
+ kOsAll,
+ SINGLE_VALUE_TYPE(
+ data_reduction_proxy::switches::kEnableDataReductionProxyLoFiPreview)},
{"clear-data-reduction-proxy-data-savings",
IDS_FLAGS_DATA_REDUCTION_PROXY_RESET_SAVINGS_NAME,
IDS_FLAGS_DATA_REDUCTION_PROXY_RESET_SAVINGS_DESCRIPTION,
@@ -2321,9 +2327,11 @@ bool SkipConditionalFeatureEntry(const FeatureEntry& entry) {
}
#endif
- // data-reduction-proxy-lo-fi is only available for Chromium builds and
- // the Canary/Dev/Beta channels.
- if (!strcmp("data-reduction-proxy-lo-fi", entry.internal_name) &&
+ // data-reduction-proxy-lo-fi and enable-data-reduction-proxy-lo-fi-preview
+ // are only available for Chromium builds and the Canary/Dev/Beta channels.
+ if ((!strcmp("data-reduction-proxy-lo-fi", entry.internal_name) ||
+ !strcmp("enable-data-reduction-proxy-lo-fi-preview",
+ entry.internal_name)) &&
channel != version_info::Channel::BETA &&
channel != version_info::Channel::DEV &&
channel != version_info::Channel::CANARY &&
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | components/data_reduction_proxy/content/browser/content_lofi_decider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698