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

Unified Diff: chrome/browser/sync/util/cryptographer.cc

Issue 8375047: Separate the syncing of extension settings and app settings into separate data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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/browser/sync/util/cryptographer.cc
diff --git a/chrome/browser/sync/util/cryptographer.cc b/chrome/browser/sync/util/cryptographer.cc
index 9b78901cdfec9a91b6bd730ce0eb204de16d9e51..f7ac50e334f10a1360b740cde4bfcdb7a463c0ab 100644
--- a/chrome/browser/sync/util/cryptographer.cc
+++ b/chrome/browser/sync/util/cryptographer.cc
@@ -310,6 +310,8 @@ void Cryptographer::UpdateEncryptedTypesFromNigori(
encrypted_types.insert(syncable::SEARCH_ENGINES);
if (nigori.encrypt_sessions())
encrypted_types.insert(syncable::SESSIONS);
+ if (nigori.encrypt_app_settings())
+ encrypted_types.insert(syncable::APP_SETTINGS);
if (nigori.encrypt_apps())
encrypted_types.insert(syncable::APPS);
if (nigori.encrypt_app_notifications())
@@ -347,6 +349,8 @@ void Cryptographer::UpdateNigoriFromEncryptedTypes(
nigori->set_encrypt_search_engines(
encrypted_types_.count(syncable::SEARCH_ENGINES) > 0);
nigori->set_encrypt_sessions(encrypted_types_.count(syncable::SESSIONS) > 0);
+ nigori->set_encrypt_app_settings(
+ encrypted_types_.count(syncable::APP_SETTINGS) > 0);
nigori->set_encrypt_apps(encrypted_types_.count(syncable::APPS) > 0);
nigori->set_encrypt_app_notifications(
encrypted_types_.count(syncable::APP_NOTIFICATIONS) > 0);

Powered by Google App Engine
This is Rietveld 408576698