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

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

Issue 3107008: sync: Add sessions to protocol and chromiumsync python test server. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « chrome/browser/sync/protocol/sync_proto.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/chromiumsync.py
===================================================================
--- net/tools/testserver/chromiumsync.py (revision 55224)
+++ net/tools/testserver/chromiumsync.py (working copy)
@@ -21,6 +21,7 @@
import preference_specifics_pb2
import theme_specifics_pb2
import typed_url_specifics_pb2
+import session_specifics_pb2
import sync_pb2
# An enumeration of the various kinds of data that can be synced.
@@ -35,9 +36,9 @@
NIGORI,
PASSWORD,
PREFERENCE,
- # SESSION,
+ SESSION,
THEME,
- TYPED_URL) = range(9)
+ TYPED_URL) = range(10)
# Given a sync type from ALL_TYPES, find the extension token corresponding
# to that datatype. Note that TOP_LEVEL has no such token.
@@ -48,7 +49,7 @@
NIGORI: nigori_specifics_pb2.nigori,
PASSWORD: password_specifics_pb2.password,
PREFERENCE: preference_specifics_pb2.preference,
- # SESSION: session_specifics_pb2.session, # Disabled
+ SESSION: session_specifics_pb2.session,
THEME: theme_specifics_pb2.theme,
TYPED_URL: typed_url_specifics_pb2.typed_url,
}
@@ -166,9 +167,8 @@
parent_tag='google_chrome', sync_type=EXTENSIONS),
PermanentItem('google_chrome_passwords', name='Passwords',
parent_tag='google_chrome', sync_type=PASSWORD),
- # TODO(rsimha): Disabled since the protocol does not support it yet.
- # PermanentItem('google_chrome_sessions', name='Sessions',
- # parent_tag='google_chrome', SESSION),
+ PermanentItem('google_chrome_sessions', name='Sessions',
+ parent_tag='google_chrome', sync_type=SESSION),
PermanentItem('google_chrome_themes', name='Themes',
parent_tag='google_chrome', sync_type=THEME),
PermanentItem('google_chrome_typed_urls', name='Typed URLs',
« no previous file with comments | « chrome/browser/sync/protocol/sync_proto.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698