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 "sync/internal_api/public/base_node.h" | 5 #include "sync/internal_api/public/base_node.h" |
6 | 6 |
7 #include <stack> | 7 #include <stack> |
8 | 8 |
9 #include "base/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "sync/internal_api/public/base_transaction.h" | 12 #include "sync/internal_api/public/base_transaction.h" |
13 #include "sync/internal_api/syncapi_internal.h" | 13 #include "sync/internal_api/syncapi_internal.h" |
14 #include "sync/protocol/app_specifics.pb.h" | 14 #include "sync/protocol/app_specifics.pb.h" |
15 #include "sync/protocol/autofill_specifics.pb.h" | 15 #include "sync/protocol/autofill_specifics.pb.h" |
16 #include "sync/protocol/bookmark_specifics.pb.h" | 16 #include "sync/protocol/bookmark_specifics.pb.h" |
17 #include "sync/protocol/extension_specifics.pb.h" | 17 #include "sync/protocol/extension_specifics.pb.h" |
18 #include "sync/protocol/nigori_specifics.pb.h" | 18 #include "sync/protocol/nigori_specifics.pb.h" |
19 #include "sync/protocol/password_specifics.pb.h" | 19 #include "sync/protocol/password_specifics.pb.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 const sync_pb::EntitySpecifics& specifics) { | 348 const sync_pb::EntitySpecifics& specifics) { |
349 ModelType type = GetModelTypeFromSpecifics(specifics); | 349 ModelType type = GetModelTypeFromSpecifics(specifics); |
350 DCHECK_NE(UNSPECIFIED, type); | 350 DCHECK_NE(UNSPECIFIED, type); |
351 if (GetModelType() != UNSPECIFIED) { | 351 if (GetModelType() != UNSPECIFIED) { |
352 DCHECK_EQ(GetModelType(), type); | 352 DCHECK_EQ(GetModelType(), type); |
353 } | 353 } |
354 unencrypted_data_.CopyFrom(specifics); | 354 unencrypted_data_.CopyFrom(specifics); |
355 } | 355 } |
356 | 356 |
357 } // namespace syncer | 357 } // namespace syncer |
OLD | NEW |