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

Unified Diff: chrome/browser/about_flags.cc

Issue 2853523002: [rendertext,i18n] Added flag to force RTL rendering (Closed)
Patch Set: Forgot to update histograms.xml Created 3 years, 8 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 | « base/i18n/rtl.cc ('k') | chrome/browser/flag_descriptions.h » ('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 333dbe006df7462a243584b050ea2da6b0e7465c..14451fe522ed6e413f2210469ecf590ef42397f3 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -528,10 +528,18 @@ const FeatureEntry::Choice kCrosRegionsModeChoices[] = {
const FeatureEntry::Choice kForceUIDirectionChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
- {flag_descriptions::kForceUiDirectionLtr, switches::kForceUIDirection,
- switches::kForceUIDirectionLTR},
- {flag_descriptions::kForceUiDirectionRtl, switches::kForceUIDirection,
- switches::kForceUIDirectionRTL},
+ {flag_descriptions::kForceDirectionLtr, switches::kForceUIDirection,
+ switches::kForceDirectionLTR},
+ {flag_descriptions::kForceDirectionRtl, switches::kForceUIDirection,
+ switches::kForceDirectionRTL},
+};
+
+const FeatureEntry::Choice kForceTextDirectionChoices[] = {
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
+ {flag_descriptions::kForceDirectionLtr, switches::kForceTextDirection,
+ switches::kForceDirectionLTR},
+ {flag_descriptions::kForceDirectionRtl, switches::kForceTextDirection,
+ switches::kForceDirectionRTL},
};
#if defined(OS_ANDROID)
@@ -2072,6 +2080,9 @@ const FeatureEntry kFeatureEntries[] = {
{"force-ui-direction", flag_descriptions::kForceUiDirectionName,
flag_descriptions::kForceUiDirectionDescription, kOsAll,
MULTI_VALUE_TYPE(kForceUIDirectionChoices)},
+ {"force-text-direction", flag_descriptions::kForceTextDirectionName,
+ flag_descriptions::kForceTextDirectionDescription, kOsAll,
+ MULTI_VALUE_TYPE(kForceTextDirectionChoices)},
#if BUILDFLAG(ENABLE_EXTENSIONS)
{"enable-md-extensions",
flag_descriptions::kEnableMaterialDesignExtensionsName,
« no previous file with comments | « base/i18n/rtl.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698