OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_service.h" | 5 #include "components/sync/driver/device_info_service.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "components/sync/api/entity_change.h" | 15 #include "components/sync/api/entity_change.h" |
16 #include "components/sync/api/metadata_batch.h" | 16 #include "components/sync/api/metadata_batch.h" |
17 #include "components/sync/api/sync_error.h" | 17 #include "components/sync/api/sync_error.h" |
18 #include "components/sync/base/time.h" | 18 #include "components/sync/base/time.h" |
19 #include "components/sync/core/data_batch_impl.h" | 19 #include "components/sync/core/data_batch_impl.h" |
20 #include "components/sync/core/simple_metadata_change_list.h" | 20 #include "components/sync/core/simple_metadata_change_list.h" |
| 21 #include "components/sync/driver/device_info_util.h" |
21 #include "components/sync/protocol/data_type_state.pb.h" | 22 #include "components/sync/protocol/data_type_state.pb.h" |
22 #include "components/sync/protocol/sync.pb.h" | 23 #include "components/sync/protocol/sync.pb.h" |
23 #include "components/sync_driver/device_info_util.h" | |
24 | 24 |
25 namespace sync_driver_v2 { | 25 namespace sync_driver_v2 { |
26 | 26 |
27 using base::Time; | 27 using base::Time; |
28 using base::TimeDelta; | 28 using base::TimeDelta; |
29 using syncer::SyncError; | 29 using syncer::SyncError; |
30 using syncer_v2::DataBatchImpl; | 30 using syncer_v2::DataBatchImpl; |
31 using syncer_v2::EntityChange; | 31 using syncer_v2::EntityChange; |
32 using syncer_v2::EntityChangeList; | 32 using syncer_v2::EntityChangeList; |
33 using syncer_v2::EntityData; | 33 using syncer_v2::EntityData; |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 Time DeviceInfoService::GetLastUpdateTime( | 529 Time DeviceInfoService::GetLastUpdateTime( |
530 const DeviceInfoSpecifics& specifics) { | 530 const DeviceInfoSpecifics& specifics) { |
531 if (specifics.has_last_updated_timestamp()) { | 531 if (specifics.has_last_updated_timestamp()) { |
532 return syncer::ProtoTimeToTime(specifics.last_updated_timestamp()); | 532 return syncer::ProtoTimeToTime(specifics.last_updated_timestamp()); |
533 } else { | 533 } else { |
534 return Time(); | 534 return Time(); |
535 } | 535 } |
536 } | 536 } |
537 | 537 |
538 } // namespace sync_driver_v2 | 538 } // namespace sync_driver_v2 |
OLD | NEW |