|
|
Chromium Code Reviews|
Created:
5 years, 10 months ago by please use gerrit instead Modified:
5 years, 10 months ago Reviewers:
groby-ooo-7-16 CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spellwatch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[mac] Init spellcheck service.
BUG=454992
Committed: https://crrev.com/4ca14cb4922b883fde5419b9b176ef58b5296bf2
Cr-Commit-Position: refs/heads/master@{#317179}
Patch Set 1 : #Patch Set 2 : Move service init to UI thread. #Messages
Total messages: 25 (9 generated)
rouslan@chromium.org changed reviewers: + groby@chromium.org
This is not the final patch, but it fixes spellcheck on Mac already. I just wanted to upload it so you can appreciate the weirdness of the situation...
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
Rachel, ptal. In an ideal world, I would probably rearchitect many things in spellcheck. But given that this is a regression that needs to merge to dev (I think), I'd like to keep the patch small.
Where does Views instantiate the factory? Think you can find a way to guarantee a common initialization path for all platforms?
Views initializes spellcheck service in the following locations, which are not used on Mac. SpellCheckMessageFilter::OnSpellCheckerRequestDictionary - Mac does not have a dictionary. SpellCheckMessageFilter::OnCallSpellingService - Mac has its own copy of spellcheck service. I would unify more Mac and Views code an ideal world, but that's out of scope for fixing this particular regression.
Alright, alright... LGTM
The CQ bit was checked by rouslan@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928473002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by rouslan@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928473002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Failure is reliable. Looking into it.
New patchsets have been uploaded after l-g-t-m from groby@chromium.org
Moved service initialization from constructor to SpellCheckMessageFilterMac::OnRequestTextCheck, because it needs to happen on the UI thread. This was the reason for the unit test failures.
The CQ bit was checked by rouslan@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/928473002/60001
I'm not happy with doing that in RequestTextCheck - that's a cost for every check we do request. Grumble. _Especially_ since you only do this to satisfy a unit test which doesn't _have_ a UI thread. The proper fix would be to send an init message from cocoa_spelling_engine, just like we do for hunspell_engine. (Except that's yet one more path that's different for Cocoa. So, no) Sigh.
Message was sent while issue was closed.
Committed patchset #2 (id:60001)
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/4ca14cb4922b883fde5419b9b176ef58b5296bf2 Cr-Commit-Position: refs/heads/master@{#317179}
Message was sent while issue was closed.
On 2015/02/19 23:41:15, groby wrote: > I'm not happy with doing that in RequestTextCheck - that's a cost for every > check we do request. Grumble. _Especially_ since you only do this to satisfy a > unit test which doesn't _have_ a UI thread. > > The proper fix would be to send an init message from cocoa_spelling_engine, just > like we do for hunspell_engine. (Except that's yet one more path that's > different for Cocoa. So, no) > > Sigh. Let me know if you'd like me to revert and look for a better solution. |
