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

Issue 2212853002: Move ChromeVox loading out of ComponentLoader. (Closed)

Created:
4 years, 4 months ago by dmazzoni
Modified:
4 years, 4 months ago
Reviewers:
Devlin
CC:
aboxhall+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, davemoore+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, David Tseng, extensions-reviews_chromium.org, je_julie, nektar+watch_chromium.org, oshima+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ChromeVox loading out of ComponentLoader. First, it isn't actually necessary to load ChromeVox from ComponentLoader. This code is probably historical. For quite some time, AccessibilityManager automatically loads ChromeVox on startup if the flag is set (and automatically loads/unloads when the flag changes). We should load it from only one place. Tested manually during startup and when logging into a session, both work fine without this call. Second, I intend to refactor AccessibilityManager so that it can support multiple accessibility component extensions. Rather than a separate function in ComponentLoader to load each one, I think it'd make more sense for AccessibilityManager to just call ComponentLoader with the appropriate parameters like the extension id and path. BUG=634233 Committed: https://crrev.com/18f89cf0b120afff95e064f437140bdbfb33ef36 Cr-Commit-Position: refs/heads/master@{#409916}

Patch Set 1 #

Total comments: 2

Patch Set 2 : AddComponentWithGuestManifest #

Total comments: 2

Patch Set 3 : Rename to AddComponentFromDir #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -49 lines) Patch
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/component_loader.h View 1 2 2 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 4 chunks +7 lines, -34 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
dmazzoni
Devlin, please take a look and let me know what you think. David: FYI / ...
4 years, 4 months ago (2016-08-04 06:35:43 UTC) #2
Devlin
https://codereview.chromium.org/2212853002/diff/1/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/2212853002/diff/1/chrome/browser/extensions/component_loader.cc#newcode661 chrome/browser/extensions/component_loader.cc:661: bool ComponentLoader::IsNormalSession() { Rather than exposing this logic to ...
4 years, 4 months ago (2016-08-04 16:18:33 UTC) #3
dmazzoni
https://codereview.chromium.org/2212853002/diff/1/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://codereview.chromium.org/2212853002/diff/1/chrome/browser/extensions/component_loader.cc#newcode661 chrome/browser/extensions/component_loader.cc:661: bool ComponentLoader::IsNormalSession() { On 2016/08/04 at 16:18:33, Devlin wrote: ...
4 years, 4 months ago (2016-08-04 17:54:38 UTC) #5
Devlin
lgtm with nit https://codereview.chromium.org/2212853002/diff/20001/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): https://codereview.chromium.org/2212853002/diff/20001/chrome/browser/extensions/component_loader.h#newcode103 chrome/browser/extensions/component_loader.h:103: // this is a guest session. ...
4 years, 4 months ago (2016-08-04 18:06:44 UTC) #7
dmazzoni
https://codereview.chromium.org/2212853002/diff/20001/chrome/browser/extensions/component_loader.h File chrome/browser/extensions/component_loader.h (right): https://codereview.chromium.org/2212853002/diff/20001/chrome/browser/extensions/component_loader.h#newcode103 chrome/browser/extensions/component_loader.h:103: // this is a guest session. Calls |done_cb| on ...
4 years, 4 months ago (2016-08-04 21:35:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2212853002/40001
4 years, 4 months ago (2016-08-04 21:35:35 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-04 22:24:07 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/18f89cf0b120afff95e064f437140bdbfb33ef36 Cr-Commit-Position: refs/heads/master@{#409916}
4 years, 4 months ago (2016-08-04 22:27:13 UTC) #16
David Tseng
4 years, 4 months ago (2016-08-09 15:02:44 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2229833002/ by dtseng@chromium.org.

The reason for reverting is: BUG=635294

Repro:
- run Chrome OS on linux with an existing profile and with the flag
--login-manager
- sign in or go through OOBE with ChromeVox on (and working)

result:
content scripts appear to be broken when logged in. I suspect user ChromeVox
isn't loading.
.

Powered by Google App Engine
This is Rietveld 408576698