| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base_node.h" | 5 #include "components/sync/core/base_node.h" |
| 6 | 6 |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include <stack> | 7 #include <stack> |
| 10 | 8 |
| 11 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 13 #include "components/sync/base/time.h" | 11 #include "components/sync/base/time.h" |
| 14 #include "components/sync/core/base_transaction.h" | 12 #include "components/sync/core/base_transaction.h" |
| 15 #include "components/sync/core_impl/syncapi_internal.h" | 13 #include "components/sync/core_impl/syncapi_internal.h" |
| 16 #include "components/sync/protocol/app_specifics.pb.h" | 14 #include "components/sync/protocol/app_specifics.pb.h" |
| 17 #include "components/sync/protocol/autofill_specifics.pb.h" | 15 #include "components/sync/protocol/autofill_specifics.pb.h" |
| 18 #include "components/sync/protocol/bookmark_specifics.pb.h" | 16 #include "components/sync/protocol/bookmark_specifics.pb.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 const sync_pb::EntitySpecifics& specifics) { | 276 const sync_pb::EntitySpecifics& specifics) { |
| 279 ModelType type = GetModelTypeFromSpecifics(specifics); | 277 ModelType type = GetModelTypeFromSpecifics(specifics); |
| 280 DCHECK_NE(UNSPECIFIED, type); | 278 DCHECK_NE(UNSPECIFIED, type); |
| 281 if (GetModelType() != UNSPECIFIED) { | 279 if (GetModelType() != UNSPECIFIED) { |
| 282 DCHECK_EQ(GetModelType(), type); | 280 DCHECK_EQ(GetModelType(), type); |
| 283 } | 281 } |
| 284 unencrypted_data_.CopyFrom(specifics); | 282 unencrypted_data_.CopyFrom(specifics); |
| 285 } | 283 } |
| 286 | 284 |
| 287 } // namespace syncer | 285 } // namespace syncer |
| OLD | NEW |