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 // Keep this file in sync with the .proto files in this directory. | 5 // Keep this file in sync with the .proto files in this directory. |
6 | 6 |
7 #include "sync/protocol/proto_value_conversions.h" | 7 #include "sync/protocol/proto_value_conversions.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 return value; | 381 return value; |
382 } | 382 } |
383 | 383 |
384 base::DictionaryValue* AppSpecificsToValue( | 384 base::DictionaryValue* AppSpecificsToValue( |
385 const sync_pb::AppSpecifics& proto) { | 385 const sync_pb::AppSpecifics& proto) { |
386 base::DictionaryValue* value = new base::DictionaryValue(); | 386 base::DictionaryValue* value = new base::DictionaryValue(); |
387 SET(extension, ExtensionSpecificsToValue); | 387 SET(extension, ExtensionSpecificsToValue); |
388 SET(notification_settings, AppSettingsToValue); | 388 SET(notification_settings, AppSettingsToValue); |
389 SET_STR(app_launch_ordinal); | 389 SET_STR(app_launch_ordinal); |
390 SET_STR(page_ordinal); | 390 SET_STR(page_ordinal); |
| 391 SET_INT32(launch_type); |
391 | 392 |
392 return value; | 393 return value; |
393 } | 394 } |
394 | 395 |
395 base::DictionaryValue* AutofillSpecificsToValue( | 396 base::DictionaryValue* AutofillSpecificsToValue( |
396 const sync_pb::AutofillSpecifics& proto) { | 397 const sync_pb::AutofillSpecifics& proto) { |
397 base::DictionaryValue* value = new base::DictionaryValue(); | 398 base::DictionaryValue* value = new base::DictionaryValue(); |
398 SET_STR(name); | 399 SET_STR(name); |
399 SET_STR(value); | 400 SET_STR(value); |
400 SET_INT64_REP(usage_timestamp); | 401 SET_INT64_REP(usage_timestamp); |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 #undef SET_BYTES | 1020 #undef SET_BYTES |
1020 #undef SET_INT32 | 1021 #undef SET_INT32 |
1021 #undef SET_INT64 | 1022 #undef SET_INT64 |
1022 #undef SET_INT64_REP | 1023 #undef SET_INT64_REP |
1023 #undef SET_STR | 1024 #undef SET_STR |
1024 #undef SET_STR_REP | 1025 #undef SET_STR_REP |
1025 | 1026 |
1026 #undef SET_FIELD | 1027 #undef SET_FIELD |
1027 | 1028 |
1028 } // namespace syncer | 1029 } // namespace syncer |
OLD | NEW |