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

Issue 11445002: Sync user's custom spellcheck dictionary (Closed)

Created:
8 years ago by please use gerrit instead
Modified:
7 years, 11 months ago
CC:
chromium-reviews, akalin, Raghu Simha, rpetterson, arv (Not doing code reviews), groby+spellwatch_chromium.org, haitaol1, tim (not reviewing)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Sync user's custom spellcheck dictionary This CL is initial work for for syncing user dictionary across multiple computers. The sync is hidden behind --enable-sync-dictionary flag for now. Do not flip this flag unless your are connected to a sync server that supports dictionary sync. If you don't know whether your sync server supports dictionary sync, then most likely it does not. BUG=51636 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178178

Patch Set 1 : #

Total comments: 44

Patch Set 2 : Address comments #

Patch Set 3 : Fix compiler warnings #

Patch Set 4 : Add browser tests for dictionary change notifications in settings #

Total comments: 20

Patch Set 5 : Address comments #

Patch Set 6 : Fix unit test #

Patch Set 7 : Add DictionarySyncLimit unit test #

Patch Set 8 : Add server-side size limit tests #

Total comments: 26

Patch Set 9 : Address comments #

Total comments: 32

Patch Set 10 : Address comments #

Patch Set 11 : Fix compile on some platforms #

Total comments: 22

Patch Set 12 : Address Zea's comments #

Patch Set 13 : Move WebUI changes into a separate CL #

Patch Set 14 : Merge master #

Patch Set 15 : Merge master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2446 lines, -446 lines) Patch
M chrome/browser/spellchecker/spellcheck_custom_dictionary.h View 1 2 3 4 5 6 7 8 9 3 chunks +127 lines, -56 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_custom_dictionary.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +445 lines, -178 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc View 1 2 3 4 5 6 7 8 9 10 chunks +1003 lines, -113 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/model_association_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/dictionary_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/dictionary_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +169 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/dictionary_load_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/dictionary_load_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/multiple_client_dictionary_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/performance/dictionary_sync_perf_test.cc View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/single_client_dictionary_sync_test.cc View 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/two_client_dictionary_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +165 lines, -0 lines 0 comments Download
M chrome/browser/sync/user_selectable_sync_type.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/language_dictionary_overlay_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -13 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +12 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/spellcheck_common.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/spellcheck_messages.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -14 lines 0 comments Download
M chrome/renderer/spellchecker/cocoa_spelling_engine_mac.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/spellchecker/cocoa_spelling_engine_mac.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/renderer/spellchecker/hunspell_engine.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/renderer/spellchecker/hunspell_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +49 lines, -24 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/renderer/spellchecker/spelling_engine.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
A sync/protocol/dictionary_specifics.proto View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M sync/protocol/nigori_specifics.proto View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +10 lines, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
M sync/protocol/sync.proto View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M sync/protocol/sync_proto.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/model_type.cc View 1 2 3 4 5 6 7 8 9 chunks +23 lines, -0 lines 0 comments Download
M sync/syncable/nigori_util.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M sync/tools/testserver/chromiumsync.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +7 lines, -2 lines 0 comments Download
M sync/util/data_type_histogram.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
groby-ooo-7-16
Go Rouslan!
8 years ago (2012-12-05 01:12:13 UTC) #1
please use gerrit instead
PTAL. This change list adds syncing for custom spellcheck dictionary. This feature is hidden behind ...
8 years ago (2012-12-19 04:06:36 UTC) #2
Tom Sepez
spellcheck_messages.h LGTM. Thanks for fixing the spelling errors in spellcheck_messages.h, too.
8 years ago (2012-12-19 18:08:36 UTC) #3
groby-ooo-7-16
https://codereview.chromium.org/11445002/diff/100003/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc (right): https://codereview.chromium.org/11445002/diff/100003/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc#newcode28 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc:28: const size_t MAX_SYNC_SIZE = 1300; Please document vars. (Specifically, ...
8 years ago (2012-12-19 22:16:00 UTC) #4
please use gerrit instead
Groby: I've addressed your comments. PTAL. https://codereview.chromium.org/11445002/diff/100003/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc (right): https://codereview.chromium.org/11445002/diff/100003/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc#newcode28 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc:28: const size_t MAX_SYNC_SIZE ...
8 years ago (2012-12-22 03:20:18 UTC) #5
akalin
I'll let zea@ handle this review.
7 years, 11 months ago (2012-12-29 09:58:39 UTC) #6
Nicolas Zea
https://codereview.chromium.org/11445002/diff/123001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc (right): https://codereview.chromium.org/11445002/diff/123001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc#newcode21 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc:21: #include "sync/protocol/sync.pb.h" Do you need this, or can you ...
7 years, 11 months ago (2013-01-02 23:12:15 UTC) #7
please use gerrit instead
Zea: I've addressed your comments, PTAL. https://codereview.chromium.org/11445002/diff/123001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc (right): https://codereview.chromium.org/11445002/diff/123001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc#newcode21 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc:21: #include "sync/protocol/sync.pb.h" On ...
7 years, 11 months ago (2013-01-04 23:30:50 UTC) #8
groby-ooo-7-16
https://codereview.chromium.org/11445002/diff/123001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/11445002/diff/123001/chrome/browser/sync/profile_sync_service.cc#newcode1288 chrome/browser/sync/profile_sync_service.cc:1288: syncer::DICTIONARY, Can't speak to the pros/cons, but I'd like ...
7 years, 11 months ago (2013-01-07 19:02:14 UTC) #9
Nicolas Zea
https://codereview.chromium.org/11445002/diff/123001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/11445002/diff/123001/chrome/browser/sync/profile_sync_service.cc#newcode1288 chrome/browser/sync/profile_sync_service.cc:1288: syncer::DICTIONARY, On 2013/01/07 19:02:14, groby wrote: > Can't speak ...
7 years, 11 months ago (2013-01-07 19:07:41 UTC) #10
groby-ooo-7-16
Quick feedback, just based on API surface change. More to come :) https://codereview.chromium.org/11445002/diff/166001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc ...
7 years, 11 months ago (2013-01-10 19:53:02 UTC) #11
groby-ooo-7-16
https://codereview.chromium.org/11445002/diff/166001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc (right): https://codereview.chromium.org/11445002/diff/166001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc#newcode22 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc:22: #include "third_party/hunspell/src/hunspell/hunspell.hxx" We probably shouldn't include hunspell here - ...
7 years, 11 months ago (2013-01-10 22:04:44 UTC) #12
please use gerrit instead
Groby: I've addressed your comments. PTAL. https://codereview.chromium.org/11445002/diff/166001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc File chrome/browser/spellchecker/spellcheck_custom_dictionary.cc (right): https://codereview.chromium.org/11445002/diff/166001/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc#newcode22 chrome/browser/spellchecker/spellcheck_custom_dictionary.cc:22: #include "third_party/hunspell/src/hunspell/hunspell.hxx" On ...
7 years, 11 months ago (2013-01-12 02:50:46 UTC) #13
groby-ooo-7-16
Modulo a few nits, spellcheck LGTM You might want to ping the other reviewers. :) ...
7 years, 11 months ago (2013-01-15 01:19:19 UTC) #14
groby-ooo-7-16
One reviewer less, more chance of landing. (s/csilv/jhawkins) jhawkins: chrome/browser/about_flags.cc Letting users flip the --enable-sync-dictionary ...
7 years, 11 months ago (2013-01-15 01:22:20 UTC) #15
please use gerrit instead
On 2013/01/15 01:22:20, groby wrote: > chrome/browser/resources/* > chrome/browser/ui/webui/* > Changes to UI for showing ...
7 years, 11 months ago (2013-01-15 01:25:47 UTC) #16
please use gerrit instead
Groby: I've addressed your comments, with the following couple of things to note: Since we ...
7 years, 11 months ago (2013-01-16 02:06:05 UTC) #17
please use gerrit instead
Jhawkins + Zea: Ping.
7 years, 11 months ago (2013-01-16 02:06:46 UTC) #18
James Hawkins
On 2013/01/16 02:06:46, Rouslan Solomakhin wrote: > Jhawkins + Zea: Ping. This CL needs to ...
7 years, 11 months ago (2013-01-17 19:37:18 UTC) #19
James Hawkins
https://codereview.chromium.org/11445002/diff/208002/chrome/browser/resources/options/language_dictionary_overlay_word_list.js File chrome/browser/resources/options/language_dictionary_overlay_word_list.js (right): https://codereview.chromium.org/11445002/diff/208002/chrome/browser/resources/options/language_dictionary_overlay_word_list.js#newcode148 chrome/browser/resources/options/language_dictionary_overlay_word_list.js:148: * Add non-duplicate dictionary words. Adds https://codereview.chromium.org/11445002/diff/208002/chrome/browser/resources/options/language_dictionary_overlay_word_list.js#newcode153 chrome/browser/resources/options/language_dictionary_overlay_word_list.js:153: for ...
7 years, 11 months ago (2013-01-17 19:37:30 UTC) #20
Nicolas Zea
https://codereview.chromium.org/11445002/diff/208002/chrome/browser/sync/test/integration/dictionary_helper.cc File chrome/browser/sync/test/integration/dictionary_helper.cc (right): https://codereview.chromium.org/11445002/diff/208002/chrome/browser/sync/test/integration/dictionary_helper.cc#newcode22 chrome/browser/sync/test/integration/dictionary_helper.cc:22: static bool ApplyChange( Does this need the class around ...
7 years, 11 months ago (2013-01-17 20:14:51 UTC) #21
please use gerrit instead
Zea: I've addressed your comments. PTAL. Jhawkins: I've addressed your comments in two separate CLs ...
7 years, 11 months ago (2013-01-17 22:25:28 UTC) #22
Nicolas Zea
LGTM! Nice work. https://codereview.chromium.org/11445002/diff/208002/chrome/browser/sync/test/integration/dictionary_helper.cc File chrome/browser/sync/test/integration/dictionary_helper.cc (right): https://codereview.chromium.org/11445002/diff/208002/chrome/browser/sync/test/integration/dictionary_helper.cc#newcode22 chrome/browser/sync/test/integration/dictionary_helper.cc:22: static bool ApplyChange( On 2013/01/17 22:25:29, ...
7 years, 11 months ago (2013-01-17 22:40:15 UTC) #23
please use gerrit instead
Jhawkins: Even though the meaningful changes for your review have been separated, could you PTAL ...
7 years, 11 months ago (2013-01-18 01:54:04 UTC) #24
James Hawkins
webui lgtm. Thanks for splitting this CL up.
7 years, 11 months ago (2013-01-22 22:12:53 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/11445002/250001
7 years, 11 months ago (2013-01-22 22:14:01 UTC) #26
commit-bot: I haz the power
7 years, 11 months ago (2013-01-23 00:37:11 UTC) #27
Message was sent while issue was closed.
Change committed as 178178

Powered by Google App Engine
This is Rietveld 408576698