OLD | NEW |
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/apply_control_data_updates.h" | 5 #include "sync/engine/apply_control_data_updates.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "sync/engine/conflict_resolver.h" | 8 #include "sync/engine/conflict_resolver.h" |
9 #include "sync/engine/conflict_util.h" | 9 #include "sync/engine/conflict_util.h" |
10 #include "sync/engine/syncer_util.h" | 10 #include "sync/engine/syncer_util.h" |
11 #include "sync/syncable/directory.h" | 11 #include "sync/syncable/directory.h" |
12 #include "sync/syncable/mutable_entry.h" | 12 #include "sync/syncable/mutable_entry.h" |
13 #include "sync/syncable/nigori_handler.h" | 13 #include "sync/syncable/nigori_handler.h" |
14 #include "sync/syncable/nigori_util.h" | 14 #include "sync/syncable/nigori_util.h" |
15 #include "sync/syncable/write_transaction.h" | 15 #include "sync/syncable/syncable_write_transaction.h" |
16 #include "sync/util/cryptographer.h" | 16 #include "sync/util/cryptographer.h" |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | 19 |
20 using syncable::GET_BY_SERVER_TAG; | 20 using syncable::GET_BY_SERVER_TAG; |
21 using syncable::IS_UNAPPLIED_UPDATE; | 21 using syncable::IS_UNAPPLIED_UPDATE; |
22 using syncable::IS_UNSYNCED; | 22 using syncable::IS_UNSYNCED; |
23 using syncable::SERVER_SPECIFICS; | 23 using syncable::SERVER_SPECIFICS; |
24 using syncable::SPECIFICS; | 24 using syncable::SPECIFICS; |
25 using syncable::SYNCER; | 25 using syncable::SYNCER; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 ConflictResolver::OVERWRITE_LOCAL, | 213 ConflictResolver::OVERWRITE_LOCAL, |
214 ConflictResolver::CONFLICT_RESOLUTION_SIZE); | 214 ConflictResolver::CONFLICT_RESOLUTION_SIZE); |
215 } | 215 } |
216 | 216 |
217 UpdateAttemptResponse response = AttemptToUpdateEntry( | 217 UpdateAttemptResponse response = AttemptToUpdateEntry( |
218 trans, entry, cryptographer); | 218 trans, entry, cryptographer); |
219 DCHECK_EQ(SUCCESS, response); | 219 DCHECK_EQ(SUCCESS, response); |
220 } | 220 } |
221 | 221 |
222 } // namespace syncer | 222 } // namespace syncer |
OLD | NEW |