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")); |