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

Unified Diff: chrome/common/spellcheck_common.h

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add server-side size limit tests Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/spellcheck_common.h
diff --git a/chrome/common/spellcheck_common.h b/chrome/common/spellcheck_common.h
index d11dcfc6741d3a481b9058d4f2c540efa1cfdc9d..b996e6f847c3e68004654090a5d73456918527c5 100644
--- a/chrome/common/spellcheck_common.h
+++ b/chrome/common/spellcheck_common.h
@@ -18,6 +18,10 @@ static const int kMaxSuggestions = 5;
static const int kMaxAutoCorrectWordSize = 8;
+// Maximum number of words in the custom spellcheck dictionary that can be
+// synced.
+static const size_t MAX_SYNCABLE_DICTIONARY_SIZE_IN_WORDS = 1300;
+
typedef std::vector<std::string> WordList;
FilePath GetVersionedFileName(const std::string& input_language,

Powered by Google App Engine
This is Rietveld 408576698