Dispatch automation events to the last used profile.
commit36eee6c86d20119bab09d7cbe3ab42622a794531
authordmazzoni <dmazzoni@chromium.org>
Mon, 14 Sep 2015 06:03:35 +0000 (13 23:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Sep 2015 06:09:23 +0000 (14 06:09 +0000)
tree1b4ab8dea6f2234ffa4dae49388eceda2226cf26
parentcc2a15974b14f585ed7233a15fb2417f2367f496
Dispatch automation events to the last used profile.

Specifically, on Chrome OS only, when the same extension
(like ChromeVox) is loaded into more than one profile, send
a flag along with the event and only pass the event to the
JavaScript layer for the active profile. The other inactive
ones will still update their accessibility trees silently in
the background.

BUG=515538

Review URL: https://codereview.chromium.org/1268163002

Cr-Commit-Position: refs/heads/master@{#348570}
chrome/browser/extensions/api/automation_internal/automation_event_router.cc
chrome/browser/extensions/api/automation_internal/automation_event_router.h
chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
chrome/common/extensions/chrome_extension_messages.h
chrome/renderer/extensions/OWNERS
chrome/renderer/extensions/automation_internal_custom_bindings.cc
chrome/renderer/extensions/automation_internal_custom_bindings.h