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

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

Issue 10855037: [Sync] Add history delete directive type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: net/tools/testserver/chromiumsync.py
diff --git a/net/tools/testserver/chromiumsync.py b/net/tools/testserver/chromiumsync.py
index 24325f5efe3f9c5c7c0d055e0118e12fc6503bed..57e650f57d80b22a098775ae3d6d56707c263678 100644
--- a/net/tools/testserver/chromiumsync.py
+++ b/net/tools/testserver/chromiumsync.py
@@ -27,6 +27,7 @@ import bookmark_specifics_pb2
import get_updates_caller_info_pb2
import extension_setting_specifics_pb2
import extension_specifics_pb2
+import history_delete_directive_specifics_pb2
import nigori_specifics_pb2
import password_specifics_pb2
import preference_specifics_pb2
@@ -50,6 +51,7 @@ ALL_TYPES = (
AUTOFILL_PROFILE,
BOOKMARK,
EXTENSIONS,
+ HISTORY_DELETE_DIRECTIVE,
NIGORI,
PASSWORD,
PREFERENCE,
@@ -57,7 +59,7 @@ ALL_TYPES = (
SESSION,
THEME,
TYPED_URL,
- EXTENSION_SETTINGS) = range(16)
+ EXTENSION_SETTINGS) = range(17)
# 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.
@@ -82,6 +84,7 @@ SYNC_TYPE_TO_DESCRIPTOR = {
BOOKMARK: SYNC_TYPE_FIELDS['bookmark'],
EXTENSION_SETTINGS: SYNC_TYPE_FIELDS['extension_setting'],
EXTENSIONS: SYNC_TYPE_FIELDS['extension'],
+ HISTORY_DELETE_DIRECTIVE: SYNC_TYPE_FIELDS['history_delete_directive'],
NIGORI: SYNC_TYPE_FIELDS['nigori'],
PASSWORD: SYNC_TYPE_FIELDS['password'],
PREFERENCE: SYNC_TYPE_FIELDS['preference'],
@@ -437,6 +440,10 @@ class SyncDataModel(object):
parent_tag='google_chrome', sync_type=EXTENSION_SETTINGS),
PermanentItem('google_chrome_extensions', name='Extensions',
parent_tag='google_chrome', sync_type=EXTENSIONS),
+ PermanentItem('google_chrome_history_delete_directives',
+ name='History Delete Directives',
+ parent_tag='google_chrome',
+ sync_type=HISTORY_DELETE_DIRECTIVE),
PermanentItem('google_chrome_passwords', name='Passwords',
parent_tag='google_chrome', sync_type=PASSWORD),
PermanentItem('google_chrome_search_engines', name='Search Engines',

Powered by Google App Engine
This is Rietveld 408576698