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

Issue 15940004: Add HasWord(string) method to SpellcheckCustomDictionary (Closed)

Created:
7 years, 7 months ago by please use gerrit instead
Modified:
7 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, yusukes+watch_chromium.org, rpetterson, rouslan+spellwatch_chromium.org, nona+watch_chromium.org, groby+spellwatch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add HasWord(string) method to SpellcheckCustomDictionary This CL adds a method HasWord(string) to SpellcheckCustomDictionary and changes the internal data structure in SpellcheckCustomDictionary from a vector to a set for more efficient querying. Spelling service client will use the new method to send IN_DICTIONARY feedback to spelling service for words that are in user's custom spellcheck dictionary. Spelling service client will use this method in upcoming CLs. This CL also modifies IPC message "SpellCheckMsg_Init" to pass a set instead of a vector of custom dictionary words. The browser sends this message to the renderer to initialize spellcheck. BUG=170514 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202722

Patch Set 1 #

Patch Set 2 : Fix Android compile #

Patch Set 3 : Fix sync_integration_tests #

Patch Set 4 : Attempt to fix android compile again #

Total comments: 5

Patch Set 5 : Address Dan's comments #

Total comments: 2

Patch Set 6 : Simplify c/b/sync/test/integration/dictionary_helper.cc #

Patch Set 7 : Clarified message direction (browser-to-renderer) in spellcheck_messages.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -115 lines) Patch
M chrome/browser/spellchecker/spellcheck_custom_dictionary.h View 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_custom_dictionary.cc View 14 chunks +14 lines, -17 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc View 1 2 3 8 chunks +33 lines, -27 lines 0 comments Download
M chrome/browser/sync/test/integration/dictionary_helper.cc View 1 2 3 4 5 6 chunks +16 lines, -50 lines 0 comments Download
M chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/spellcheck_common.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/spellcheck_messages.h View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/spellchecker/custom_dictionary_engine.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/spellchecker/custom_dictionary_engine.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/renderer/spellchecker/custom_dictionary_engine_unittest.cc View 1 chunk +11 lines, -3 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
please use gerrit instead
Rachel: PTAL.
7 years, 7 months ago (2013-05-23 22:54:50 UTC) #1
please use gerrit instead
Justin: PTAL chrome/common/spellcheck_messages.h
7 years, 7 months ago (2013-05-23 22:56:40 UTC) #2
please use gerrit instead
Dan: PTAL chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc
7 years, 7 months ago (2013-05-23 22:58:13 UTC) #3
Dan Beam
c/b/ui/webui/options lgtm https://chromiumcodereview.appspot.com/15940004/diff/17001/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc File chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc (right): https://chromiumcodereview.appspot.com/15940004/diff/17001/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc#newcode95 chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc:95: for (chrome::spellcheck_common::WordSet::iterator it = words.begin(); nit: const_iterator ...
7 years, 7 months ago (2013-05-24 02:57:51 UTC) #4
please use gerrit instead
https://chromiumcodereview.appspot.com/15940004/diff/17001/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc File chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc (right): https://chromiumcodereview.appspot.com/15940004/diff/17001/chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc#newcode95 chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc:95: for (chrome::spellcheck_common::WordSet::iterator it = words.begin(); On 2013/05/24 02:57:51, Dan ...
7 years, 7 months ago (2013-05-24 16:20:00 UTC) #5
please use gerrit instead
Fred: PTAL chrome/browser/sync/test/integration/dictionary_helper.cc
7 years, 7 months ago (2013-05-24 16:20:56 UTC) #6
rpetterson
LGTM although I have a question about the test (but it doesn't change the underlying ...
7 years, 7 months ago (2013-05-24 20:05:21 UTC) #7
please use gerrit instead
https://codereview.chromium.org/15940004/diff/25001/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc (right): https://codereview.chromium.org/15940004/diff/25001/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc#newcode329 chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc:329: EXPECT_TRUE(dictionary->AddWord("bar")); On 2013/05/24 20:05:21, rpetterson wrote: > why flip ...
7 years, 7 months ago (2013-05-24 20:31:09 UTC) #8
please use gerrit instead
Justin: I've clarified message direction (browser-to-renderer) in spellcheck_messages.h. Also I've added a paragraph describing the ...
7 years, 6 months ago (2013-05-28 18:34:19 UTC) #9
jschuh
ipc security lgtm. no change in attack surface.
7 years, 6 months ago (2013-05-28 18:37:26 UTC) #10
akalin
+zea, who's a better reviewer
7 years, 6 months ago (2013-05-28 18:37:59 UTC) #11
Nicolas Zea
sync LGTM
7 years, 6 months ago (2013-05-28 18:48:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/15940004/60001
7 years, 6 months ago (2013-05-28 18:51:02 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5289
7 years, 6 months ago (2013-05-28 19:22:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/15940004/60001
7 years, 6 months ago (2013-05-28 19:29:53 UTC) #15
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5305
7 years, 6 months ago (2013-05-28 19:42:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/15940004/60001
7 years, 6 months ago (2013-05-28 21:46:47 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 00:47:55 UTC) #18
Message was sent while issue was closed.
Change committed as 202722

Powered by Google App Engine
This is Rietveld 408576698