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

Side by Side Diff: net/tools/testserver/chromiumsync.py

Issue 8819008: Revert 113103 - Changes the visibility of the 'mobile' node based on whether there is a node on t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """An implementation of the server side of the Chromium sync protocol. 5 """An implementation of the server side of the Chromium sync protocol.
6 6
7 The details of the protocol are described mostly by comments in the protocol 7 The details of the protocol are described mostly by comments in the protocol
8 buffer definition at chrome/browser/sync/protocol/sync.proto. 8 buffer definition at chrome/browser/sync/protocol/sync.proto.
9 """ 9 """
10 10
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 # Specify all the permanent items that a model might need. 387 # Specify all the permanent items that a model might need.
388 _PERMANENT_ITEM_SPECS = [ 388 _PERMANENT_ITEM_SPECS = [
389 PermanentItem('google_chrome', name='Google Chrome', 389 PermanentItem('google_chrome', name='Google Chrome',
390 parent_tag=ROOT_ID, sync_type=TOP_LEVEL), 390 parent_tag=ROOT_ID, sync_type=TOP_LEVEL),
391 PermanentItem('google_chrome_bookmarks', name='Bookmarks', 391 PermanentItem('google_chrome_bookmarks', name='Bookmarks',
392 parent_tag='google_chrome', sync_type=BOOKMARK), 392 parent_tag='google_chrome', sync_type=BOOKMARK),
393 PermanentItem('bookmark_bar', name='Bookmark Bar', 393 PermanentItem('bookmark_bar', name='Bookmark Bar',
394 parent_tag='google_chrome_bookmarks', sync_type=BOOKMARK), 394 parent_tag='google_chrome_bookmarks', sync_type=BOOKMARK),
395 PermanentItem('other_bookmarks', name='Other Bookmarks', 395 PermanentItem('other_bookmarks', name='Other Bookmarks',
396 parent_tag='google_chrome_bookmarks', sync_type=BOOKMARK), 396 parent_tag='google_chrome_bookmarks', sync_type=BOOKMARK),
397 PermanentItem('synced_bookmarks', name='Mobile Bookmarks',
398 parent_tag='google_chrome_bookmarks', sync_type=BOOKMARK),
397 PermanentItem('google_chrome_preferences', name='Preferences', 399 PermanentItem('google_chrome_preferences', name='Preferences',
398 parent_tag='google_chrome', sync_type=PREFERENCE), 400 parent_tag='google_chrome', sync_type=PREFERENCE),
399 PermanentItem('google_chrome_autofill', name='Autofill', 401 PermanentItem('google_chrome_autofill', name='Autofill',
400 parent_tag='google_chrome', sync_type=AUTOFILL), 402 parent_tag='google_chrome', sync_type=AUTOFILL),
401 PermanentItem('google_chrome_autofill_profiles', name='Autofill Profiles', 403 PermanentItem('google_chrome_autofill_profiles', name='Autofill Profiles',
402 parent_tag='google_chrome', sync_type=AUTOFILL_PROFILE), 404 parent_tag='google_chrome', sync_type=AUTOFILL_PROFILE),
403 PermanentItem('google_chrome_app_settings', 405 PermanentItem('google_chrome_app_settings',
404 name='App Settings', 406 name='App Settings',
405 parent_tag='google_chrome', sync_type=APP_SETTINGS), 407 parent_tag='google_chrome', sync_type=APP_SETTINGS),
406 PermanentItem('google_chrome_extension_settings', 408 PermanentItem('google_chrome_extension_settings',
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 1190
1189 update_sieve.CheckMigrationState() 1191 update_sieve.CheckMigrationState()
1190 1192
1191 new_timestamp, entries, remaining = self.account.GetChanges(update_sieve) 1193 new_timestamp, entries, remaining = self.account.GetChanges(update_sieve)
1192 1194
1193 update_response.changes_remaining = remaining 1195 update_response.changes_remaining = remaining
1194 for entry in entries: 1196 for entry in entries:
1195 reply = update_response.entries.add() 1197 reply = update_response.entries.add()
1196 reply.CopyFrom(entry) 1198 reply.CopyFrom(entry)
1197 update_sieve.SaveProgress(new_timestamp, update_response) 1199 update_sieve.SaveProgress(new_timestamp, update_response)
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698