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

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

Issue 7150023: Add protobuffer and model type for syncing custom search engines. Includes all boilerplate helper... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/util/cryptographer.cc ('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 89422)
+++ net/tools/testserver/chromiumsync.py (working copy)
@@ -25,6 +25,7 @@
import nigori_specifics_pb2
import password_specifics_pb2
import preference_specifics_pb2
+import search_engine_specifics_pb2
import session_specifics_pb2
import sync_pb2
import theme_specifics_pb2
@@ -44,9 +45,10 @@
NIGORI,
PASSWORD,
PREFERENCE,
+ SEARCH_ENGINE,
SESSION,
THEME,
- TYPED_URL) = range(12)
+ TYPED_URL) = range(13)
# Well-known server tag of the top level 'Google Chrome' folder.
TOP_LEVEL_FOLDER_TAG = 'google_chrome'
@@ -62,6 +64,7 @@
NIGORI: nigori_specifics_pb2.nigori,
PASSWORD: password_specifics_pb2.password,
PREFERENCE: preference_specifics_pb2.preference,
+ SEARCH_ENGINE: search_engine_specifics_pb2.search_engine,
SESSION: session_specifics_pb2.session,
THEME: theme_specifics_pb2.theme,
TYPED_URL: typed_url_specifics_pb2.typed_url,
@@ -381,6 +384,8 @@
parent_tag='google_chrome', sync_type=EXTENSIONS),
PermanentItem('google_chrome_passwords', name='Passwords',
parent_tag='google_chrome', sync_type=PASSWORD),
+ PermanentItem('google_chrome_search_engines', name='Search Engines',
+ parent_tag='google_chrome', sync_type=SEARCH_ENGINE),
PermanentItem('google_chrome_sessions', name='Sessions',
parent_tag='google_chrome', sync_type=SESSION),
PermanentItem('google_chrome_themes', name='Themes',
« no previous file with comments | « chrome/browser/sync/util/cryptographer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698