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

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

Issue 7977018: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix race condition in ExtensionSettingsUIWrapper::Core Created 9 years, 3 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 8126f482597e3323d3823acf0bfe7eec9d850758..5e2a12980ef957275dd93531c8b6401d7d997024 100644
--- a/chrome/browser/sync/util/cryptographer.cc
+++ b/chrome/browser/sync/util/cryptographer.cc
@@ -291,6 +291,8 @@ void Cryptographer::UpdateEncryptedTypesFromNigori(
encrypted_types_.insert(syncable::THEMES);
if (nigori.encrypt_typed_urls())
encrypted_types_.insert(syncable::TYPED_URLS);
+ if (nigori.encrypt_extension_settings())
+ encrypted_types_.insert(syncable::EXTENSION_SETTINGS);
if (nigori.encrypt_extensions())
encrypted_types_.insert(syncable::EXTENSIONS);
if (nigori.encrypt_search_engines())
@@ -324,6 +326,8 @@ void Cryptographer::UpdateNigoriFromEncryptedTypes(
nigori->set_encrypt_themes(encrypted_types_.count(syncable::THEMES) > 0);
nigori->set_encrypt_typed_urls(
encrypted_types_.count(syncable::TYPED_URLS) > 0);
+ nigori->set_encrypt_extension_settings(
+ encrypted_types_.count(syncable::EXTENSION_SETTINGS) > 0);
nigori->set_encrypt_extensions(
encrypted_types_.count(syncable::EXTENSIONS) > 0);
nigori->set_encrypt_search_engines(
« no previous file with comments | « chrome/browser/sync/syncable/model_type.cc ('k') | chrome/browser/ui/cocoa/extensions/extension_popup_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698