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

Unified Diff: sync/syncable/nigori_util.cc

Issue 11445002: Sync user's custom spellcheck dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add browser tests for dictionary change notifications in settings Created 8 years 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: sync/syncable/nigori_util.cc
diff --git a/sync/syncable/nigori_util.cc b/sync/syncable/nigori_util.cc
index b0fee50cbf7b5a9a95d27668088171703e28a353..3a5736b619828e9c0f6417807198f72f8c6984e9 100644
--- a/sync/syncable/nigori_util.cc
+++ b/sync/syncable/nigori_util.cc
@@ -275,6 +275,7 @@ void UpdateNigoriFromEncryptedTypes(ModelTypeSet encrypted_types,
nigori->set_encrypt_apps(encrypted_types.Has(APPS));
nigori->set_encrypt_app_notifications(
encrypted_types.Has(APP_NOTIFICATIONS));
+ nigori->set_encrypt_dictionary(encrypted_types.Has(DICTIONARY));
}
ModelTypeSet GetEncryptedTypesFromNigori(
@@ -310,6 +311,8 @@ ModelTypeSet GetEncryptedTypesFromNigori(
encrypted_types.Put(APPS);
if (nigori.encrypt_app_notifications())
encrypted_types.Put(APP_NOTIFICATIONS);
+ if (nigori.encrypt_dictionary())
+ encrypted_types.Put(DICTIONARY);
return encrypted_types;
}

Powered by Google App Engine
This is Rietveld 408576698