summaryrefslogtreecommitdiffstats
path: root/net/tools/testserver
diff options
context:
space:
mode:
authorpetewil@chromium.org <petewil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-03 03:22:15 +0000
committerpetewil@chromium.org <petewil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-03 03:22:15 +0000
commita987e6153641b0463a3fa6fca129b227c4f29e71 (patch)
treeda53e4795de09fac8e5d57dbfed5be682c7127a0 /net/tools/testserver
parent1859cbb22110aadf306c1f832aee7b350faada59 (diff)
downloadchromium_src-a987e6153641b0463a3fa6fca129b227c4f29e71.zip
chromium_src-a987e6153641b0463a3fa6fca129b227c4f29e71.tar.gz
chromium_src-a987e6153641b0463a3fa6fca129b227c4f29e71.tar.bz2
Create a fresh sync datatype for Synced Notifications
BUG=164313 Review URL: https://chromiumcodereview.appspot.com/11441005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/testserver')
-rw-r--r--net/tools/testserver/chromiumsync.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/tools/testserver/chromiumsync.py b/net/tools/testserver/chromiumsync.py
index 789b821..c4138ba 100644
--- a/net/tools/testserver/chromiumsync.py
+++ b/net/tools/testserver/chromiumsync.py
@@ -35,6 +35,7 @@ import search_engine_specifics_pb2
import session_specifics_pb2
import sync_pb2
import sync_enums_pb2
+import synced_notification_specifics_pb2
import theme_specifics_pb2
import typed_url_specifics_pb2
@@ -59,9 +60,10 @@ ALL_TYPES = (
PREFERENCE,
SEARCH_ENGINE,
SESSION,
+ SYNCED_NOTIFICATION,
THEME,
TYPED_URL,
- EXTENSION_SETTINGS) = range(19)
+ EXTENSION_SETTINGS) = range(20)
# An eumeration on the frequency at which the server should send errors
# to the client. This would be specified by the url that triggers the error.
@@ -94,6 +96,7 @@ SYNC_TYPE_TO_DESCRIPTOR = {
PREFERENCE: SYNC_TYPE_FIELDS['preference'],
SEARCH_ENGINE: SYNC_TYPE_FIELDS['search_engine'],
SESSION: SYNC_TYPE_FIELDS['session'],
+ SYNCED_NOTIFICATION: SYNC_TYPE_FIELDS["synced_notification"],
THEME: SYNC_TYPE_FIELDS['theme'],
TYPED_URL: SYNC_TYPE_FIELDS['typed_url'],
}
@@ -469,6 +472,8 @@ 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_preferences', name='Synced Notifications',
+ parent_tag=ROOT_ID, sync_type=SYNCED_NOTIFICATION),
PermanentItem('google_chrome_search_engines', name='Search Engines',
parent_tag=ROOT_ID, sync_type=SEARCH_ENGINE),
PermanentItem('google_chrome_sessions', name='Sessions',