Index: net/tools/testserver/chromiumsync.py |
diff --git a/net/tools/testserver/chromiumsync.py b/net/tools/testserver/chromiumsync.py |
index 1559033fa31db6cf40c1577b77aa94db0b52cf67..9e8cb84e683a90103d41d01f68293e7edff7d404 100755 |
--- a/net/tools/testserver/chromiumsync.py |
+++ b/net/tools/testserver/chromiumsync.py |
@@ -18,8 +18,9 @@ import sys |
import threading |
import urlparse |
-import app_specifics_pb2 |
import app_notification_specifics_pb2 |
+import app_setting_specifics_pb2 |
+import app_specifics_pb2 |
import autofill_specifics_pb2 |
import bookmark_specifics_pb2 |
import extension_setting_specifics_pb2 |
@@ -41,6 +42,7 @@ ALL_TYPES = ( |
TOP_LEVEL, # The type of the 'Google Chrome' folder. |
APPS, |
APP_NOTIFICATION, |
+ APP_SETTINGS, |
AUTOFILL, |
AUTOFILL_PROFILE, |
BOOKMARK, |
@@ -52,7 +54,7 @@ ALL_TYPES = ( |
SESSION, |
THEME, |
TYPED_URL, |
- EXTENSION_SETTINGS) = range(15) |
+ EXTENSION_SETTINGS) = range(16) |
# Well-known server tag of the top level 'Google Chrome' folder. |
TOP_LEVEL_FOLDER_TAG = 'google_chrome' |
@@ -60,8 +62,9 @@ TOP_LEVEL_FOLDER_TAG = 'google_chrome' |
# Given a sync type from ALL_TYPES, find the extension token corresponding |
# to that datatype. Note that TOP_LEVEL has no such token. |
SYNC_TYPE_TO_EXTENSION = { |
- APPS: app_specifics_pb2.app, |
APP_NOTIFICATION: app_notification_specifics_pb2.app_notification, |
+ APP_SETTINGS: app_setting_specifics_pb2.app_setting, |
+ APPS: app_specifics_pb2.app, |
AUTOFILL: autofill_specifics_pb2.autofill, |
AUTOFILL_PROFILE: autofill_specifics_pb2.autofill_profile, |
BOOKMARK: bookmark_specifics_pb2.bookmark, |
@@ -394,6 +397,9 @@ class SyncDataModel(object): |
parent_tag='google_chrome', sync_type=AUTOFILL), |
PermanentItem('google_chrome_autofill_profiles', name='Autofill Profiles', |
parent_tag='google_chrome', sync_type=AUTOFILL_PROFILE), |
+ PermanentItem('google_chrome_app_settings', |
+ name='App Settings', |
+ parent_tag='google_chrome', sync_type=APP_SETTINGS), |
PermanentItem('google_chrome_extension_settings', |
name='Extension Settings', |
parent_tag='google_chrome', sync_type=EXTENSION_SETTINGS), |