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

Side by Side Diff: chrome/browser/sync/engine/syncer.cc

Issue 7822008: [Sync] Remove static initializers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
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 #include "chrome/browser/sync/engine/syncer.h" 5 #include "chrome/browser/sync/engine/syncer.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/tracked.h" 9 #include "base/tracked.h"
10 #include "chrome/browser/sync/engine/apply_updates_command.h" 10 #include "chrome/browser/sync/engine/apply_updates_command.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 dest->Put(SERVER_VERSION, src->Get(SERVER_VERSION)); 336 dest->Put(SERVER_VERSION, src->Get(SERVER_VERSION));
337 dest->Put(SERVER_IS_DIR, src->Get(SERVER_IS_DIR)); 337 dest->Put(SERVER_IS_DIR, src->Get(SERVER_IS_DIR));
338 dest->Put(SERVER_IS_DEL, src->Get(SERVER_IS_DEL)); 338 dest->Put(SERVER_IS_DEL, src->Get(SERVER_IS_DEL));
339 dest->Put(IS_UNAPPLIED_UPDATE, src->Get(IS_UNAPPLIED_UPDATE)); 339 dest->Put(IS_UNAPPLIED_UPDATE, src->Get(IS_UNAPPLIED_UPDATE));
340 dest->Put(SERVER_SPECIFICS, src->Get(SERVER_SPECIFICS)); 340 dest->Put(SERVER_SPECIFICS, src->Get(SERVER_SPECIFICS));
341 dest->Put(SERVER_POSITION_IN_PARENT, src->Get(SERVER_POSITION_IN_PARENT)); 341 dest->Put(SERVER_POSITION_IN_PARENT, src->Get(SERVER_POSITION_IN_PARENT));
342 } 342 }
343 343
344 void ClearServerData(syncable::MutableEntry* entry) { 344 void ClearServerData(syncable::MutableEntry* entry) {
345 entry->Put(SERVER_NON_UNIQUE_NAME, ""); 345 entry->Put(SERVER_NON_UNIQUE_NAME, "");
346 entry->Put(SERVER_PARENT_ID, syncable::kNullId); 346 entry->Put(SERVER_PARENT_ID, syncable::GetNullId());
347 entry->Put(SERVER_MTIME, 0); 347 entry->Put(SERVER_MTIME, 0);
348 entry->Put(SERVER_CTIME, 0); 348 entry->Put(SERVER_CTIME, 0);
349 entry->Put(SERVER_VERSION, 0); 349 entry->Put(SERVER_VERSION, 0);
350 entry->Put(SERVER_IS_DIR, false); 350 entry->Put(SERVER_IS_DIR, false);
351 entry->Put(SERVER_IS_DEL, false); 351 entry->Put(SERVER_IS_DEL, false);
352 entry->Put(IS_UNAPPLIED_UPDATE, false); 352 entry->Put(IS_UNAPPLIED_UPDATE, false);
353 entry->Put(SERVER_SPECIFICS, sync_pb::EntitySpecifics::default_instance()); 353 entry->Put(SERVER_SPECIFICS, sync_pb::EntitySpecifics::default_instance());
354 entry->Put(SERVER_POSITION_IN_PARENT, 0); 354 entry->Put(SERVER_POSITION_IN_PARENT, 0);
355 } 355 }
356 356
357 } // namespace browser_sync 357 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/conflict_resolver.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698