Commit fd038920 authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[VK] Whitelist accessibility keyboard pref for Tast tests.

We would like to test the accessibility keyboard in Tast, but it's
activated based on a pref. We'll whitelist this pref so that Tast
can set it to true to bring up the accessibility keyboard.

Note: this introduces another ash dependency from chromeos.

Bug: 879073
Change-Id: I593e4d544ea4f0e1717c4a683d0fe65d2a7a7a38
Reviewed-on: https://chromium-review.googlesource.com/c/1485691Reviewed-by: default avatarDan Erat <derat@chromium.org>
Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635254}
parent 7d7633f7
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <sstream> #include <sstream>
#include <utility> #include <utility>
#include "ash/public/cpp/ash_pref_names.h"
#include "ash/public/interfaces/ash_message_center_controller.mojom.h" #include "ash/public/interfaces/ash_message_center_controller.mojom.h"
#include "ash/public/interfaces/constants.mojom.h" #include "ash/public/interfaces/constants.mojom.h"
#include "ash/shell.h" #include "ash/shell.h"
...@@ -181,6 +182,8 @@ std::string SetWhitelistedPref(Profile* profile, ...@@ -181,6 +182,8 @@ std::string SetWhitelistedPref(Profile* profile,
ash::mojom::AssistantAllowedState::ALLOWED) { ash::mojom::AssistantAllowedState::ALLOWED) {
return "Assistant is not available for the current user"; return "Assistant is not available for the current user";
} }
} else if (pref_name == ash::prefs::kAccessibilityVirtualKeyboardEnabled) {
DCHECK(value.is_bool());
} else { } else {
return "The pref " + pref_name + "is not whitelisted."; return "The pref " + pref_name + "is not whitelisted.";
} }
......
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