diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 22:18:55 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 22:18:55 +0000 |
commit | 43fe640e64aac277a5e0b28fe6b58d2973164df8 (patch) | |
tree | 367962ca89c283d63bb3ef810e6593f3b0317811 /sync/tools | |
parent | cbe30167853f161d2aaa16846d9b8bea16027858 (diff) | |
download | chromium_src-43fe640e64aac277a5e0b28fe6b58d2973164df8.zip chromium_src-43fe640e64aac277a5e0b28fe6b58d2973164df8.tar.gz chromium_src-43fe640e64aac277a5e0b28fe6b58d2973164df8.tar.bz2 |
sync: Implementation of Priority Preferences.
Priority preferences are similar to normal preferences but are never encrypted and are synced ahead of other datatypes. Because they're never encrypted, on first sync, they can be synced immediately after login, before the user is prompted for a passphrase.
Expected uses of priority preferences include hardware setting (eg. trackpad speed, scroll direction, etc.) as well as settings that could be 2-way synced with existing Google Account settings (eg. language).
BUG=168648
Review URL: https://chromiumcodereview.appspot.com/12033093
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/tools')
-rw-r--r-- | sync/tools/testserver/chromiumsync.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sync/tools/testserver/chromiumsync.py b/sync/tools/testserver/chromiumsync.py index d33ed01..06dfa40 100644 --- a/sync/tools/testserver/chromiumsync.py +++ b/sync/tools/testserver/chromiumsync.py @@ -34,6 +34,7 @@ import history_delete_directive_specifics_pb2 import nigori_specifics_pb2 import password_specifics_pb2 import preference_specifics_pb2 +import priority_preference_specifics_pb2 import search_engine_specifics_pb2 import session_specifics_pb2 import sync_pb2 @@ -62,6 +63,7 @@ ALL_TYPES = ( NIGORI, PASSWORD, PREFERENCE, + PRIORITY_PREFERENCE, SEARCH_ENGINE, SESSION, SYNCED_NOTIFICATION, @@ -69,7 +71,7 @@ ALL_TYPES = ( TYPED_URL, EXTENSION_SETTINGS, FAVICON_IMAGES, - FAVICON_TRACKING) = range(23) + FAVICON_TRACKING) = range(24) # An enumeration on the frequency at which the server should send errors # to the client. This would be specified by the url that triggers the error. @@ -103,6 +105,7 @@ SYNC_TYPE_TO_DESCRIPTOR = { NIGORI: SYNC_TYPE_FIELDS['nigori'], PASSWORD: SYNC_TYPE_FIELDS['password'], PREFERENCE: SYNC_TYPE_FIELDS['preference'], + PRIORITY_PREFERENCE: SYNC_TYPE_FIELDS['priority_preference'], SEARCH_ENGINE: SYNC_TYPE_FIELDS['search_engine'], SESSION: SYNC_TYPE_FIELDS['session'], SYNCED_NOTIFICATION: SYNC_TYPE_FIELDS["synced_notification"], @@ -494,6 +497,9 @@ class SyncDataModel(object): parent_tag=ROOT_ID, sync_type=PASSWORD), PermanentItem('google_chrome_preferences', name='Preferences', parent_tag=ROOT_ID, sync_type=PREFERENCE), + PermanentItem('google_chrome_priority_preferences', + name='Priority Preferences', + parent_tag=ROOT_ID, sync_type=PRIORITY_PREFERENCE), PermanentItem('google_chrome_synced_notifications', name='Synced Notifications', parent_tag=ROOT_ID, sync_type=SYNCED_NOTIFICATION), |