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

Side by Side Diff: components/sync/engine_impl/loopback_server/persistent_unique_client_entity.cc

Issue 2460703005: [Sync] IWYU cleanup. (Closed)
Patch Set: Created 4 years, 1 month 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 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/engine_impl/loopback_server/persistent_unique_client_e ntity.h" 5 #include "components/sync/engine_impl/loopback_server/persistent_unique_client_e ntity.h"
6 6
7 #include <stdint.h>
8
9 #include <memory>
10 #include <string>
11
12 #include "base/guid.h" 7 #include "base/guid.h"
13 #include "components/sync/base/model_type.h"
14 #include "components/sync/engine_impl/loopback_server/loopback_server_entity.h"
15 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit y.h" 8 #include "components/sync/engine_impl/loopback_server/persistent_permanent_entit y.h"
16 #include "components/sync/protocol/sync.pb.h" 9 #include "components/sync/protocol/sync.pb.h"
17 #include "components/sync/syncable/syncable_util.h" 10 #include "components/sync/syncable/syncable_util.h"
18 11
19 using std::string; 12 using std::string;
20 13
21 using syncer::GetModelTypeFromSpecifics; 14 using syncer::GetModelTypeFromSpecifics;
22 using syncer::ModelType; 15 using syncer::ModelType;
23 using syncer::syncable::GenerateSyncableHash; 16 using syncer::syncable::GenerateSyncableHash;
24 17
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void PersistentUniqueClientEntity::SerializeAsProto( 76 void PersistentUniqueClientEntity::SerializeAsProto(
84 sync_pb::SyncEntity* proto) const { 77 sync_pb::SyncEntity* proto) const {
85 LoopbackServerEntity::SerializeBaseProtoFields(proto); 78 LoopbackServerEntity::SerializeBaseProtoFields(proto);
86 79
87 proto->set_client_defined_unique_tag(client_defined_unique_tag_); 80 proto->set_client_defined_unique_tag(client_defined_unique_tag_);
88 proto->set_ctime(creation_time_); 81 proto->set_ctime(creation_time_);
89 proto->set_mtime(last_modified_time_); 82 proto->set_mtime(last_modified_time_);
90 } 83 }
91 84
92 } // namespace syncer 85 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698