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

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

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

Powered by Google App Engine
This is Rietveld 408576698