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

Unified Diff: chrome/browser/about_flags.cc

Issue 1655323002: Switch use-zoom-for-dsf flag to use tri-value flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/common/content_switches_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 59cb6683b283cb7ae3ea392177f618e7d31964b1..2947d4655d8375484645973a839dd2981915c5de 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -523,6 +523,14 @@ const FeatureEntry::Choice kEnableOfflinePagesChoices[] = {
};
#endif // defined(OS_ANDROID)
+const FeatureEntry::Choice kEnableUseZoomForDSFChoices[] = {
+ { IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_CHOICE_DEFAULT, "", ""},
+ { IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_CHOICE_ENABLED,
+ switches::kEnableUseZoomForDSF, "true" },
+ { IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_CHOICE_DISABLED,
+ switches::kEnableUseZoomForDSF, "false" },
+};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name. If you'd like to gather
@@ -1714,7 +1722,7 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_NAME,
IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_DESCRIPTION,
kOsDesktop,
- SINGLE_VALUE_TYPE(switches::kEnableUseZoomForDSF)},
+ MULTI_VALUE_TYPE(kEnableUseZoomForDSFChoices)},
#if defined(OS_MACOSX)
{"enable-harfbuzz-rendertext",
IDS_FLAGS_HARFBUZZ_RENDERTEXT_NAME,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/common/content_switches_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698