Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: components/sync/device_info/device_info_service.cc

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector>
10 9
11 #include "base/bind.h" 10 #include "base/bind.h"
12 #include "base/location.h" 11 #include "base/location.h"
13 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
14 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
15 #include "components/sync/api/entity_change.h" 14 #include "components/sync/api/entity_change.h"
16 #include "components/sync/api/metadata_batch.h" 15 #include "components/sync/api/metadata_batch.h"
17 #include "components/sync/api/sync_error.h" 16 #include "components/sync/api/sync_error.h"
18 #include "components/sync/base/time.h" 17 #include "components/sync/base/time.h"
19 #include "components/sync/core/data_batch_impl.h" 18 #include "components/sync/core/data_batch_impl.h"
20 #include "components/sync/core/simple_metadata_change_list.h"
21 #include "components/sync/device_info/device_info_util.h" 19 #include "components/sync/device_info/device_info_util.h"
22 #include "components/sync/protocol/data_type_state.pb.h" 20 #include "components/sync/protocol/data_type_state.pb.h"
23 #include "components/sync/protocol/sync.pb.h" 21 #include "components/sync/protocol/sync.pb.h"
24 22
25 namespace sync_driver_v2 { 23 namespace sync_driver_v2 {
26 24
27 using base::Time; 25 using base::Time;
28 using base::TimeDelta; 26 using base::TimeDelta;
29 using syncer::SyncError; 27 using syncer::SyncError;
30 using syncer_v2::DataBatchImpl; 28 using syncer_v2::DataBatchImpl;
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 Time DeviceInfoService::GetLastUpdateTime( 527 Time DeviceInfoService::GetLastUpdateTime(
530 const DeviceInfoSpecifics& specifics) { 528 const DeviceInfoSpecifics& specifics) {
531 if (specifics.has_last_updated_timestamp()) { 529 if (specifics.has_last_updated_timestamp()) {
532 return syncer::ProtoTimeToTime(specifics.last_updated_timestamp()); 530 return syncer::ProtoTimeToTime(specifics.last_updated_timestamp());
533 } else { 531 } else {
534 return Time(); 532 return Time();
535 } 533 }
536 } 534 }
537 535
538 } // namespace sync_driver_v2 536 } // namespace sync_driver_v2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698