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

Side by Side Diff: sync/engine/apply_updates_command.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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
« no previous file with comments | « sync/engine/apply_updates_command.h ('k') | sync/engine/apply_updates_command_unittest.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/engine/apply_updates_command.h" 5 #include "sync/engine/apply_updates_command.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "sync/engine/update_applicator.h" 8 #include "sync/engine/update_applicator.h"
9 #include "sync/sessions/sync_session.h" 9 #include "sync/sessions/sync_session.h"
10 #include "sync/syncable/directory.h" 10 #include "sync/syncable/directory.h"
11 #include "sync/syncable/read_transaction.h" 11 #include "sync/syncable/read_transaction.h"
12 #include "sync/syncable/write_transaction.h" 12 #include "sync/syncable/write_transaction.h"
13 13
14 namespace csync { 14 namespace syncer {
15 15
16 using sessions::SyncSession; 16 using sessions::SyncSession;
17 17
18 ApplyUpdatesCommand::ApplyUpdatesCommand() {} 18 ApplyUpdatesCommand::ApplyUpdatesCommand() {}
19 ApplyUpdatesCommand::~ApplyUpdatesCommand() {} 19 ApplyUpdatesCommand::~ApplyUpdatesCommand() {}
20 20
21 std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange( 21 std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange(
22 const sessions::SyncSession& session) const { 22 const sessions::SyncSession& session) const {
23 std::set<ModelSafeGroup> groups_with_unapplied_updates; 23 std::set<ModelSafeGroup> groups_with_unapplied_updates;
24 24
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 for (syncable::ModelTypeSet::Iterator it = 78 for (syncable::ModelTypeSet::Iterator it =
79 status.updates_request_types().First(); it.Good(); it.Inc()) { 79 status.updates_request_types().First(); it.Good(); it.Inc()) {
80 // This gets persisted to the directory's backing store. 80 // This gets persisted to the directory's backing store.
81 dir->set_initial_sync_ended_for_type(it.Get(), true); 81 dir->set_initial_sync_ended_for_type(it.Get(), true);
82 } 82 }
83 } 83 }
84 84
85 return SYNCER_OK; 85 return SYNCER_OK;
86 } 86 }
87 87
88 } // namespace csync 88 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/apply_updates_command.h ('k') | sync/engine/apply_updates_command_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698