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

Issue 7919003: Remove refptr usages from SpellCheckHost (Closed)

Created:
9 years, 3 months ago by KushalP
Modified:
9 years, 1 month ago
Reviewers:
Hironori Bono, Torne, akalin
CC:
chromium-reviews
Visibility:
Public.

Description

Remove refptr usages from SpellCheckHost BUG=79886 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109022

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix pointer returns. Update tests. #

Total comments: 2

Patch Set 3 : Remove header. Remove cast. #

Patch Set 4 : DCHECK current thread is correct for all post tasks #

Patch Set 5 : Start work on PostTaskAndReply #

Patch Set 6 : rebase to trunk #

Patch Set 7 : Start fixing tests. Commented on mocking issue. #

Patch Set 8 : Merging in hbono's changes #

Patch Set 9 : remove TODO comments #

Total comments: 2

Patch Set 10 : rebase to TRUNK #

Total comments: 5

Patch Set 11 : SaveDictionaryDataComplete #

Total comments: 2

Patch Set 12 : comments for new methods and vars #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -110 lines) Patch
M chrome/browser/spellchecker/spellcheck_host.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +23 lines, -13 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +84 lines, -58 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_profile.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_profile.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_profile_unittest.cc View 1 2 3 4 5 6 7 8 9 13 chunks +26 lines, -27 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
KushalP
This isn't finished yet, but posting it to be tracked. Currently there's one issue that ...
9 years, 3 months ago (2011-09-15 23:40:32 UTC) #1
Hironori Bono
Greetings, Sorry for the lack of responses. I think we also need to change the ...
9 years, 2 months ago (2011-10-14 10:57:03 UTC) #2
dcheng
Completely random drive by. http://codereview.chromium.org/7919003/diff/7001/chrome/browser/spellchecker/spellcheck_host.cc File chrome/browser/spellchecker/spellcheck_host.cc (right): http://codereview.chromium.org/7919003/diff/7001/chrome/browser/spellchecker/spellcheck_host.cc#newcode7 chrome/browser/spellchecker/spellcheck_host.cc:7: #include "base/memory/scoped_ptr.h" I'm surprised you ...
9 years, 2 months ago (2011-10-20 23:24:34 UTC) #3
KushalP
Updated with new patch set that compiles target 'unit_test' successfully. It's currently running through the ...
9 years, 2 months ago (2011-10-20 23:30:38 UTC) #4
KushalP
I'm about to start refactoring this, but would appreciate some clarification. SpellCheckHostImplBackend (SCIB) and SpellCheckHostImplFrontend ...
9 years, 2 months ago (2011-10-21 00:27:25 UTC) #5
KushalP
I'm about to start refactoring this, but would appreciate some clarification. SpellCheckHostImplBackend (SCIB) and SpellCheckHostImplFrontend ...
9 years, 2 months ago (2011-10-21 00:27:26 UTC) #6
akalin
Both SCIB and SCIF are non-thread-safe on their respective threads (i.e., not ref-counted). The frontend ...
9 years, 2 months ago (2011-10-21 00:31:58 UTC) #7
akalin
If the backend stuff is mostly just one-off tasks, you may be able to get ...
9 years, 2 months ago (2011-10-21 00:34:22 UTC) #8
akalin
One example would be NonBlockingInvalidationNotifier (frontend) vs. InvalidationNotifier (backend). On Thu, Oct 20, 2011 at ...
9 years, 2 months ago (2011-10-21 00:34:56 UTC) #9
Hironori Bono
Greetings, Thank you for your hard work. This SpellCheckHostImpl class maps a dictionary file to ...
9 years, 2 months ago (2011-10-21 08:46:36 UTC) #10
KushalP
Does that mean I still have to go through the separation of SCIB and SCIF? ...
9 years, 2 months ago (2011-10-21 09:09:01 UTC) #11
Hironori Bono
Greetings, To simply describe the intention of my previous comment, "we should redesign the SpellCheckImpl ...
9 years, 2 months ago (2011-10-21 09:22:26 UTC) #12
KushalP
Patch Set 5 is my first try at getting PostTaskAndReply working. I wasn't sure how ...
9 years, 2 months ago (2011-10-25 21:13:17 UTC) #13
KushalP
TL;DR I think there's a mocking issue related to the IsReady() function in spellcheck_profile_unittest.cc. How ...
9 years, 1 month ago (2011-10-31 00:25:27 UTC) #14
KushalP
target.SetHostToBeCreated(host.get()) seems to be the way to set the return values for mocked methods. However, ...
9 years, 1 month ago (2011-10-31 11:48:39 UTC) #15
Hironori Bono
Greetings, Thanks you so much for your updates. I will try your change on my ...
9 years, 1 month ago (2011-10-31 12:30:13 UTC) #16
Hironori Bono
Greetings, I have tried your change and investigated it today. It seems SpellCheckProfileTest.* fail because ...
9 years, 1 month ago (2011-11-01 09:58:18 UTC) #17
KushalP
Thanks Hironori! So it was a pointer ownership problem in the end? I thought that ...
9 years, 1 month ago (2011-11-01 10:56:54 UTC) #18
Hironori Bono
Greetings, It seems so. (I'm not confident of it, though.) Regards, Hironori Bono On 2011/11/01 ...
9 years, 1 month ago (2011-11-01 11:01:07 UTC) #19
KushalP
Thanks (largely) to hbono,, this patch set looks good to review now! Please see Patch ...
9 years, 1 month ago (2011-11-01 16:04:28 UTC) #20
KushalP
For the last few hours interactive_ui_tests on Win has kept the tree closed. Hopefully when ...
9 years, 1 month ago (2011-11-02 23:35:14 UTC) #21
Hironori Bono
Greetings, Thank you so much for your update. Even though the latest one looks good ...
9 years, 1 month ago (2011-11-04 03:46:59 UTC) #22
KushalP
@Hironori Thanks for the explanation of Initialize! I still think it should be named something ...
9 years, 1 month ago (2011-11-04 23:53:19 UTC) #23
Hironori Bono
LGTM. Thank you for your great work. Can you land this change by yourself? Or ...
9 years, 1 month ago (2011-11-07 04:50:11 UTC) #24
Hironori Bono
Greetings, Sorry, I notice this code causes a DCHECK failure after downloading a dictionary. To ...
9 years, 1 month ago (2011-11-07 07:59:59 UTC) #25
KushalP
Sure, I'll get onto this later tonight. Just to be clear, is the dictionary_saved_ boolean ...
9 years, 1 month ago (2011-11-07 11:25:29 UTC) #26
KushalP
I've added the SaveDictionaryDataComplete function and the patch is currently running through the trybots. It ...
9 years, 1 month ago (2011-11-08 00:14:21 UTC) #27
Hironori Bono
LGTM again with a couple of nits. Thank you so much for your great work. ...
9 years, 1 month ago (2011-11-08 07:20:25 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kushi.p@gmail.com/7919003/52001
9 years, 1 month ago (2011-11-08 10:16:41 UTC) #29
commit-bot: I haz the power
Try job failure for 7919003-52001 (retry) on win_rel for step "chrome_frame_net_tests". It's a second try, ...
9 years, 1 month ago (2011-11-08 12:02:25 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kushi.p@gmail.com/7919003/52001
9 years, 1 month ago (2011-11-08 12:34:42 UTC) #31
commit-bot: I haz the power
9 years, 1 month ago (2011-11-08 14:15:45 UTC) #32
Change committed as 109022

Powered by Google App Engine
This is Rietveld 408576698