OLD | NEW |
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/core/processor_entity_tracker.h" | 5 #include "components/sync/core/processor_entity_tracker.h" |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include "base/base64.h" | 7 #include "base/base64.h" |
10 #include "base/sha1.h" | 8 #include "base/sha1.h" |
11 #include "base/time/time.h" | |
12 #include "components/sync/base/time.h" | 9 #include "components/sync/base/time.h" |
13 #include "components/sync/core/non_blocking_sync_common.h" | 10 #include "components/sync/core/non_blocking_sync_common.h" |
14 #include "components/sync/syncable/syncable_util.h" | 11 #include "components/sync/syncable/syncable_util.h" |
15 | 12 |
16 namespace syncer_v2 { | 13 namespace syncer_v2 { |
17 | 14 |
18 namespace { | 15 namespace { |
19 | 16 |
20 void HashSpecifics(const sync_pb::EntitySpecifics& specifics, | 17 void HashSpecifics(const sync_pb::EntitySpecifics& specifics, |
21 std::string* hash) { | 18 std::string* hash) { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 void ProcessorEntityTracker::UpdateSpecificsHash( | 243 void ProcessorEntityTracker::UpdateSpecificsHash( |
247 const sync_pb::EntitySpecifics& specifics) { | 244 const sync_pb::EntitySpecifics& specifics) { |
248 if (specifics.ByteSize() > 0) { | 245 if (specifics.ByteSize() > 0) { |
249 HashSpecifics(specifics, metadata_.mutable_specifics_hash()); | 246 HashSpecifics(specifics, metadata_.mutable_specifics_hash()); |
250 } else { | 247 } else { |
251 metadata_.clear_specifics_hash(); | 248 metadata_.clear_specifics_hash(); |
252 } | 249 } |
253 } | 250 } |
254 | 251 |
255 } // namespace syncer_v2 | 252 } // namespace syncer_v2 |
OLD | NEW |