OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_driver/device_info_sync_service.h" | 5 #include "components/sync_driver/device_info_sync_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "components/sync/api/sync_change.h" |
| 15 #include "components/sync/base/time.h" |
| 16 #include "components/sync/protocol/sync.pb.h" |
14 #include "components/sync_driver/device_info_util.h" | 17 #include "components/sync_driver/device_info_util.h" |
15 #include "components/sync_driver/local_device_info_provider.h" | 18 #include "components/sync_driver/local_device_info_provider.h" |
16 #include "sync/api/sync_change.h" | |
17 #include "sync/protocol/sync.pb.h" | |
18 #include "sync/util/time.h" | |
19 | 19 |
20 namespace sync_driver { | 20 namespace sync_driver { |
21 | 21 |
22 using base::Time; | 22 using base::Time; |
23 using base::TimeDelta; | 23 using base::TimeDelta; |
24 using syncer::ModelType; | 24 using syncer::ModelType; |
25 using syncer::SyncChange; | 25 using syncer::SyncChange; |
26 using syncer::SyncChangeList; | 26 using syncer::SyncChangeList; |
27 using syncer::SyncChangeProcessor; | 27 using syncer::SyncChangeProcessor; |
28 using syncer::SyncData; | 28 using syncer::SyncData; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 return syncer::SyncDataRemote(device_info).GetModifiedTime(); | 333 return syncer::SyncDataRemote(device_info).GetModifiedTime(); |
334 } else { | 334 } else { |
335 // We shouldn't reach this point for remote data, so this means we're likely | 335 // We shouldn't reach this point for remote data, so this means we're likely |
336 // looking at the local device info. Using a long ago time is perfect, since | 336 // looking at the local device info. Using a long ago time is perfect, since |
337 // the desired behavior is to update/pulse our data as soon as possible. | 337 // the desired behavior is to update/pulse our data as soon as possible. |
338 return Time(); | 338 return Time(); |
339 } | 339 } |
340 } | 340 } |
341 | 341 |
342 } // namespace sync_driver | 342 } // namespace sync_driver |
OLD | NEW |