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

Issue 1268163002: Dispatch automation events to the last used profile. (Closed)

Created:
5 years, 4 months ago by dmazzoni
Modified:
5 years, 3 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/36eee6c86d20119bab09d7cbe3ab42622a794531 Cr-Commit-Position: refs/heads/master@{#348570}

Patch Set 1 #

Patch Set 2 : Better fix #

Patch Set 3 : Better solution #

Patch Set 4 : Fix crash #

Total comments: 13

Patch Set 5 : Address feedback, fix compile error #

Patch Set 6 : Rebase #

Patch Set 7 : Add to owners file #

Total comments: 2

Patch Set 8 : const auto& #

Patch Set 9 : Fix rebase error, add back include of profile_manager.h #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -12 lines) Patch
M chrome/browser/extensions/api/automation_internal/automation_event_router.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +42 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/automation_internal/automation_event_router.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +56 lines, -3 lines 1 comment Download
M chrome/browser/extensions/api/automation_internal/automation_internal_api.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/OWNERS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 3 4 4 chunks +14 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (9 generated)
dmazzoni
This was the idea we talked about, but it could cause problems because then the ...
5 years, 4 months ago (2015-08-04 23:05:00 UTC) #2
David Tseng
dmazzoni@chromium.org writes: > Reviewers: David Tseng, Peter Lundblad, > > Message: > This was the ...
5 years, 4 months ago (2015-08-05 17:07:32 UTC) #3
dmazzoni
> > What if we just resent the entire tree whenever the active profile > ...
5 years, 4 months ago (2015-08-05 17:15:59 UTC) #4
dmazzoni
OK, here's a more comprehensive solution. I tested it with multi-profile on Chrome OS and ...
5 years, 4 months ago (2015-08-05 19:13:21 UTC) #5
David Tseng
https://codereview.chromium.org/1268163002/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1268163002/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode67 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:67: 0, nit: /* desktop tree id */ https://codereview.chromium.org/1268163002/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode74 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:74: ...
5 years, 4 months ago (2015-08-05 22:24:36 UTC) #6
dmazzoni
https://codereview.chromium.org/1268163002/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1268163002/diff/60001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode67 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:67: 0, On 2015/08/05 22:24:36, David Tseng wrote: > nit: ...
5 years, 4 months ago (2015-08-05 22:53:39 UTC) #7
dmazzoni
Friendly ping
5 years, 4 months ago (2015-08-06 22:32:08 UTC) #8
David Tseng
lgtm
5 years, 4 months ago (2015-08-06 22:34:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268163002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268163002/80001
5 years, 4 months ago (2015-08-06 22:38:56 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/85979)
5 years, 4 months ago (2015-08-06 22:50:57 UTC) #13
dmazzoni
+kalman
5 years, 4 months ago (2015-08-06 23:15:11 UTC) #15
not at google - send to devlin
Is there some feedback you want from me? Or just a lgtm? Because I can't ...
5 years, 4 months ago (2015-08-07 20:46:33 UTC) #16
dmazzoni
I believe we need your owners approval for chrome/renderer/extensions. Would it make sense to move ...
5 years, 4 months ago (2015-08-07 20:50:28 UTC) #17
not at google - send to devlin
On 2015/08/07 20:50:28, dmazzoni wrote: > I believe we need your owners approval for chrome/renderer/extensions. ...
5 years, 4 months ago (2015-08-07 20:51:37 UTC) #18
dmazzoni
I added the OWNERS file changes to this CL. Thanks.
5 years, 4 months ago (2015-08-07 21:25:44 UTC) #19
dmazzoni
+dcheng for chrome/common/extensions/chrome_extension_messages.h
5 years, 4 months ago (2015-08-07 21:26:42 UTC) #21
dcheng
ipc changes lgtm https://codereview.chromium.org/1268163002/diff/120001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1268163002/diff/120001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode175 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:175: for (auto listener2 : listeners_) { ...
5 years, 4 months ago (2015-08-07 21:36:09 UTC) #22
dmazzoni
https://codereview.chromium.org/1268163002/diff/120001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc File chrome/browser/extensions/api/automation_internal/automation_event_router.cc (right): https://codereview.chromium.org/1268163002/diff/120001/chrome/browser/extensions/api/automation_internal/automation_event_router.cc#newcode175 chrome/browser/extensions/api/automation_internal/automation_event_router.cc:175: for (auto listener2 : listeners_) { On 2015/08/07 21:36:09, ...
5 years, 4 months ago (2015-08-07 22:03:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268163002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268163002/200001
5 years, 3 months ago (2015-09-11 22:52:03 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/61943)
5 years, 3 months ago (2015-09-11 23:20:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268163002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268163002/200001
5 years, 3 months ago (2015-09-14 04:23:13 UTC) #30
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 3 months ago (2015-09-14 06:03:44 UTC) #31
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/36eee6c86d20119bab09d7cbe3ab42622a794531 Cr-Commit-Position: refs/heads/master@{#348570}
5 years, 3 months ago (2015-09-14 06:09:34 UTC) #32
David Tseng
This cl breaks ChromeVox Next and ChromeVox commands in the shelf. - chrome --login-manager - ...
5 years, 3 months ago (2015-09-16 17:15:38 UTC) #33
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:30:06 UTC) #34
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/36eee6c86d20119bab09d7cbe3ab42622a794531
Cr-Commit-Position: refs/heads/master@{#348570}

Powered by Google App Engine
This is Rietveld 408576698