| 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" |
| 16 #include "components/sync/api/metadata_batch.h" |
| 17 #include "components/sync/api/sync_error.h" |
| 18 #include "components/sync/base/time.h" |
| 19 #include "components/sync/core/data_batch_impl.h" |
| 20 #include "components/sync/core/simple_metadata_change_list.h" |
| 21 #include "components/sync/protocol/data_type_state.pb.h" |
| 22 #include "components/sync/protocol/sync.pb.h" |
| 15 #include "components/sync_driver/device_info_util.h" | 23 #include "components/sync_driver/device_info_util.h" |
| 16 #include "sync/api/entity_change.h" | |
| 17 #include "sync/api/metadata_batch.h" | |
| 18 #include "sync/api/sync_error.h" | |
| 19 #include "sync/internal_api/public/data_batch_impl.h" | |
| 20 #include "sync/internal_api/public/simple_metadata_change_list.h" | |
| 21 #include "sync/protocol/data_type_state.pb.h" | |
| 22 #include "sync/protocol/sync.pb.h" | |
| 23 #include "sync/util/time.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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 Time DeviceInfoService::GetLastUpdateTime( | 527 Time DeviceInfoService::GetLastUpdateTime( |
| 528 const DeviceInfoSpecifics& specifics) { | 528 const DeviceInfoSpecifics& specifics) { |
| 529 if (specifics.has_last_updated_timestamp()) { | 529 if (specifics.has_last_updated_timestamp()) { |
| 530 return syncer::ProtoTimeToTime(specifics.last_updated_timestamp()); | 530 return syncer::ProtoTimeToTime(specifics.last_updated_timestamp()); |
| 531 } else { | 531 } else { |
| 532 return Time(); | 532 return Time(); |
| 533 } | 533 } |
| 534 } | 534 } |
| 535 | 535 |
| 536 } // namespace sync_driver_v2 | 536 } // namespace sync_driver_v2 |
| OLD | NEW |