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

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

Issue 11638018: [sync] Componentize sync: Part 5: Eliminate filename collisions in sync.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comments Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/process_commit_response_command.h" 5 #include "sync/engine/process_commit_response_command.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "sync/engine/syncer_proto_util.h" 14 #include "sync/engine/syncer_proto_util.h"
15 #include "sync/engine/syncer_util.h" 15 #include "sync/engine/syncer_util.h"
16 #include "sync/sessions/sync_session.h" 16 #include "sync/sessions/sync_session.h"
17 #include "sync/syncable/entry.h" 17 #include "sync/syncable/entry.h"
18 #include "sync/syncable/mutable_entry.h" 18 #include "sync/syncable/mutable_entry.h"
19 #include "sync/syncable/read_transaction.h"
20 #include "sync/syncable/syncable_proto_util.h" 19 #include "sync/syncable/syncable_proto_util.h"
20 #include "sync/syncable/syncable_read_transaction.h"
21 #include "sync/syncable/syncable_util.h" 21 #include "sync/syncable/syncable_util.h"
22 #include "sync/syncable/write_transaction.h" 22 #include "sync/syncable/syncable_write_transaction.h"
23 #include "sync/util/time.h" 23 #include "sync/util/time.h"
24 24
25 // TODO(vishwath): Remove this include after node positions have 25 // TODO(vishwath): Remove this include after node positions have
26 // shifted to completely using Ordinals. 26 // shifted to completely using Ordinals.
27 // See http://crbug.com/145412 . 27 // See http://crbug.com/145412 .
28 #include "sync/internal_api/public/base/node_ordinal.h" 28 #include "sync/internal_api/public/base/node_ordinal.h"
29 29
30 using std::set; 30 using std::set;
31 using std::string; 31 using std::string;
32 using std::vector; 32 using std::vector;
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // been recursively deleted. 463 // been recursively deleted.
464 // TODO(nick): Here, commit_message.deleted() would be more correct than 464 // TODO(nick): Here, commit_message.deleted() would be more correct than
465 // local_entry->Get(IS_DEL). For example, an item could be renamed, and then 465 // local_entry->Get(IS_DEL). For example, an item could be renamed, and then
466 // deleted during the commit of the rename. Unit test & fix. 466 // deleted during the commit of the rename. Unit test & fix.
467 if (local_entry->Get(IS_DIR) && local_entry->Get(IS_DEL)) { 467 if (local_entry->Get(IS_DIR) && local_entry->Get(IS_DEL)) {
468 deleted_folders->insert(local_entry->Get(ID)); 468 deleted_folders->insert(local_entry->Get(ID));
469 } 469 }
470 } 470 }
471 471
472 } // namespace syncer 472 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/get_commit_ids_command.cc ('k') | sync/engine/process_commit_response_command_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698