Commit 129b610a authored by Chris Hall's avatar Chris Hall Committed by Commit Bot

Renaming language detection feature flag function to be grammatically sensible.

R=aboxhall

Bug: 889370
Change-Id: Ib4c28c3fd7df0e9e2423708abff8a93ba70a0626
Reviewed-on: https://chromium-review.googlesource.com/c/1496400
Commit-Queue: Chris Hall <chrishall@chromium.org>
Commit-Queue: Alice Boxhall <aboxhall@chromium.org>
Auto-Submit: Chris Hall <chrishall@chromium.org>
Reviewed-by: default avatarAlice Boxhall <aboxhall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636719}
parent fd1f49a4
...@@ -36,7 +36,7 @@ bool AreExperimentalAccessibilityFeaturesEnabled() { ...@@ -36,7 +36,7 @@ bool AreExperimentalAccessibilityFeaturesEnabled() {
::switches::kEnableExperimentalAccessibilityFeatures); ::switches::kEnableExperimentalAccessibilityFeatures);
} }
bool AreExperimentalAccessibilityLanguageDetectionEnabled() { bool IsExperimentalAccessibilityLanguageDetectionEnabled() {
return base::CommandLine::ForCurrentProcess()->HasSwitch( return base::CommandLine::ForCurrentProcess()->HasSwitch(
::switches::kEnableExperimentalAccessibilityLanguageDetection); ::switches::kEnableExperimentalAccessibilityLanguageDetection);
} }
......
...@@ -22,7 +22,7 @@ AX_EXPORT extern const char ...@@ -22,7 +22,7 @@ AX_EXPORT extern const char
AX_EXPORT bool AreExperimentalAccessibilityFeaturesEnabled(); AX_EXPORT bool AreExperimentalAccessibilityFeaturesEnabled();
// Returns true if experimental accessibility language detection is enabled. // Returns true if experimental accessibility language detection is enabled.
AX_EXPORT bool AreExperimentalAccessibilityLanguageDetectionEnabled(); AX_EXPORT bool IsExperimentalAccessibilityLanguageDetectionEnabled();
#if defined(OS_WIN) #if defined(OS_WIN)
AX_EXPORT extern const char kEnableExperimentalUIAutomation[]; AX_EXPORT extern const char kEnableExperimentalUIAutomation[];
......
...@@ -20,13 +20,13 @@ namespace ui { ...@@ -20,13 +20,13 @@ namespace ui {
TEST(AXLanguageInfoTest, TestSwitch) { TEST(AXLanguageInfoTest, TestSwitch) {
// TODO(crbug/889370): Remove this test once this feature is stable // TODO(crbug/889370): Remove this test once this feature is stable
EXPECT_FALSE( EXPECT_FALSE(
::switches::AreExperimentalAccessibilityLanguageDetectionEnabled()); ::switches::IsExperimentalAccessibilityLanguageDetectionEnabled());
base::CommandLine::ForCurrentProcess()->AppendSwitch( base::CommandLine::ForCurrentProcess()->AppendSwitch(
::switches::kEnableExperimentalAccessibilityLanguageDetection); ::switches::kEnableExperimentalAccessibilityLanguageDetection);
EXPECT_TRUE( EXPECT_TRUE(
::switches::AreExperimentalAccessibilityLanguageDetectionEnabled()); ::switches::IsExperimentalAccessibilityLanguageDetectionEnabled());
} }
// Tests that AXNode::GetLanguage() terminates when there is no lang attribute. // Tests that AXNode::GetLanguage() terminates when there is no lang attribute.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment