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

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_internal_api.cc

Issue 2803823002: Fix Chrome OS virtual keyboard accessibility (Closed)
Patch Set: 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
Index: chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
diff --git a/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc b/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
index 916d4407f866693ab9a494cfae2ec2a73ae01343..d84aa66b8761d26881297a2746d967832cecc263 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
+++ b/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
@@ -461,6 +461,8 @@ AutomationInternalPerformActionFunction::Run() {
ExtensionFunction::ResponseAction
AutomationInternalEnableDesktopFunction::Run() {
#if defined(USE_AURA)
+ content::BrowserAccessibilityState::GetInstance()->EnableAccessibility();
David Tseng 2017/04/06 16:45:43 I don't understand why this is necessary if the ho
dmazzoni 2017/04/06 19:26:03 I'm open to other solutions but I couldn't come up
David Tseng 2017/04/06 20:00:32 What happened with storing the child tree id as a
dmazzoni 2017/04/07 23:34:08 OK, see latest patch set. I figured out a way to d
+
const AutomationInfo* automation_info = AutomationInfo::Get(extension());
if (!automation_info || !automation_info->desktop)
return RespondNow(Error("desktop permission must be requested"));

Powered by Google App Engine
This is Rietveld 408576698