OLD | NEW |
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 "components/sync/engine_impl/syncer.h" | 5 #include "components/sync/engine_impl/syncer.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "components/sync/engine_impl/commit.h" | 21 #include "components/sync/engine_impl/commit.h" |
22 #include "components/sync/engine_impl/commit_processor.h" | 22 #include "components/sync/engine_impl/commit_processor.h" |
23 #include "components/sync/engine_impl/conflict_resolver.h" | 23 #include "components/sync/engine_impl/conflict_resolver.h" |
24 #include "components/sync/engine_impl/cycle/nudge_tracker.h" | 24 #include "components/sync/engine_impl/cycle/nudge_tracker.h" |
25 #include "components/sync/engine_impl/get_updates_delegate.h" | 25 #include "components/sync/engine_impl/get_updates_delegate.h" |
26 #include "components/sync/engine_impl/get_updates_processor.h" | 26 #include "components/sync/engine_impl/get_updates_processor.h" |
27 #include "components/sync/engine_impl/net/server_connection_manager.h" | 27 #include "components/sync/engine_impl/net/server_connection_manager.h" |
28 #include "components/sync/engine_impl/syncer_types.h" | 28 #include "components/sync/engine_impl/syncer_types.h" |
29 #include "components/sync/syncable/directory.h" | 29 #include "components/sync/syncable/directory.h" |
30 #include "components/sync/syncable/mutable_entry.h" | 30 #include "components/sync/syncable/mutable_entry.h" |
31 #include "components/sync/syncable/syncable-inl.h" | |
32 | 31 |
33 using base::Time; | 32 using base::Time; |
34 using base::TimeDelta; | 33 using base::TimeDelta; |
35 using sync_pb::ClientCommand; | 34 using sync_pb::ClientCommand; |
36 | 35 |
37 namespace syncer { | 36 namespace syncer { |
38 | 37 |
39 // TODO(akalin): We may want to propagate this switch up | 38 // TODO(akalin): We may want to propagate this switch up |
40 // eventually. | 39 // eventually. |
41 #if defined(OS_ANDROID) || defined(OS_IOS) | 40 #if defined(OS_ANDROID) || defined(OS_IOS) |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 205 } |
207 | 206 |
208 bool Syncer::PostClearServerData(SyncCycle* cycle) { | 207 bool Syncer::PostClearServerData(SyncCycle* cycle) { |
209 DCHECK(cycle); | 208 DCHECK(cycle); |
210 ClearServerData clear_server_data(cycle->context()->account_name()); | 209 ClearServerData clear_server_data(cycle->context()->account_name()); |
211 const SyncerError post_result = clear_server_data.SendRequest(cycle); | 210 const SyncerError post_result = clear_server_data.SendRequest(cycle); |
212 return post_result == SYNCER_OK; | 211 return post_result == SYNCER_OK; |
213 } | 212 } |
214 | 213 |
215 } // namespace syncer | 214 } // namespace syncer |
OLD | NEW |