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

Unified Diff: sync/tools/testserver/chromiumsync.py

Issue 674633002: sync: add WIFI_CREDENTIALS protobuf, ModelType, and preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@local-master
Patch Set: fix JS, update data_type_histogram.h, and update histograms.xml Created 6 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: sync/tools/testserver/chromiumsync.py
diff --git a/sync/tools/testserver/chromiumsync.py b/sync/tools/testserver/chromiumsync.py
index 2dcee1b6e1acb9cb5e5096ee5b67bb3b9d724a80..ca84e833b5c104dc8ddd0ead4ca07be5837279d0 100644
--- a/sync/tools/testserver/chromiumsync.py
+++ b/sync/tools/testserver/chromiumsync.py
@@ -56,6 +56,7 @@ import synced_notification_render_pb2
import synced_notification_specifics_pb2
import theme_specifics_pb2
import typed_url_specifics_pb2
+import wifi_credential_specifics_pb2
# An enumeration of the various kinds of data that can be synced.
# Over the wire, this enumeration is not used: a sync object's type is
@@ -92,7 +93,8 @@ ALL_TYPES = (
TYPED_URL,
EXTENSION_SETTINGS,
FAVICON_IMAGES,
- FAVICON_TRACKING) = range(31)
+ FAVICON_TRACKING,
+ WIFI_CREDENTIAL) = range(32)
# 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.
@@ -141,6 +143,7 @@ SYNC_TYPE_TO_DESCRIPTOR = {
SYNC_TYPE_FIELDS["synced_notification_app_info"],
THEME: SYNC_TYPE_FIELDS['theme'],
TYPED_URL: SYNC_TYPE_FIELDS['typed_url'],
+ WIFI_CREDENTIAL: SYNC_TYPE_FIELDS["wifi_credential"],
}
# The parent ID used to indicate a top-level node.
@@ -566,6 +569,8 @@ class SyncDataModel(object):
parent_tag=ROOT_ID, sync_type=THEME),
PermanentItem('google_chrome_typed_urls', name='Typed URLs',
parent_tag=ROOT_ID, sync_type=TYPED_URL),
+ PermanentItem('google_chrome_wifi_credentials', name='WiFi Credentials',
+ parent_tag=ROOT_ID, sync_type=WIFI_CREDENTIAL),
PermanentItem('google_chrome_dictionary', name='Dictionary',
parent_tag=ROOT_ID, sync_type=DICTIONARY),
PermanentItem('google_chrome_articles', name='Articles',

Powered by Google App Engine
This is Rietveld 408576698