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/device_info/device_info_service.h" | 5 #include "components/sync/device_info/device_info_service.h" |
6 | 6 |
| 7 #include <algorithm> |
7 #include <set> | 8 #include <set> |
8 #include <utility> | 9 #include <utility> |
9 | 10 |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/location.h" | 12 #include "base/location.h" |
12 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
14 #include "components/sync/api/entity_change.h" | 15 #include "components/sync/api/entity_change.h" |
15 #include "components/sync/api/metadata_batch.h" | 16 #include "components/sync/api/metadata_batch.h" |
16 #include "components/sync/api/sync_error.h" | 17 #include "components/sync/api/sync_error.h" |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 Time DeviceInfoService::GetLastUpdateTime( | 515 Time DeviceInfoService::GetLastUpdateTime( |
515 const DeviceInfoSpecifics& specifics) { | 516 const DeviceInfoSpecifics& specifics) { |
516 if (specifics.has_last_updated_timestamp()) { | 517 if (specifics.has_last_updated_timestamp()) { |
517 return ProtoTimeToTime(specifics.last_updated_timestamp()); | 518 return ProtoTimeToTime(specifics.last_updated_timestamp()); |
518 } else { | 519 } else { |
519 return Time(); | 520 return Time(); |
520 } | 521 } |
521 } | 522 } |
522 | 523 |
523 } // namespace syncer | 524 } // namespace syncer |
OLD | NEW |