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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 395 } |
396 | 396 |
397 base::DictionaryValue* AppSpecificsToValue( | 397 base::DictionaryValue* AppSpecificsToValue( |
398 const sync_pb::AppSpecifics& proto) { | 398 const sync_pb::AppSpecifics& proto) { |
399 base::DictionaryValue* value = new base::DictionaryValue(); | 399 base::DictionaryValue* value = new base::DictionaryValue(); |
400 SET(extension, ExtensionSpecificsToValue); | 400 SET(extension, ExtensionSpecificsToValue); |
401 SET(notification_settings, AppSettingsToValue); | 401 SET(notification_settings, AppSettingsToValue); |
402 SET_STR(app_launch_ordinal); | 402 SET_STR(app_launch_ordinal); |
403 SET_STR(page_ordinal); | 403 SET_STR(page_ordinal); |
404 SET_ENUM(launch_type, GetLaunchTypeString); | 404 SET_ENUM(launch_type, GetLaunchTypeString); |
| 405 SET_STR(bookmark_app_url); |
| 406 SET_STR(bookmark_app_description); |
405 | 407 |
406 return value; | 408 return value; |
407 } | 409 } |
408 | 410 |
409 base::DictionaryValue* AutofillSpecificsToValue( | 411 base::DictionaryValue* AutofillSpecificsToValue( |
410 const sync_pb::AutofillSpecifics& proto) { | 412 const sync_pb::AutofillSpecifics& proto) { |
411 base::DictionaryValue* value = new base::DictionaryValue(); | 413 base::DictionaryValue* value = new base::DictionaryValue(); |
412 SET_STR(name); | 414 SET_STR(name); |
413 SET_STR(value); | 415 SET_STR(value); |
414 SET_INT64_REP(usage_timestamp); | 416 SET_INT64_REP(usage_timestamp); |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 #undef SET_BYTES | 1081 #undef SET_BYTES |
1080 #undef SET_INT32 | 1082 #undef SET_INT32 |
1081 #undef SET_INT64 | 1083 #undef SET_INT64 |
1082 #undef SET_INT64_REP | 1084 #undef SET_INT64_REP |
1083 #undef SET_STR | 1085 #undef SET_STR |
1084 #undef SET_STR_REP | 1086 #undef SET_STR_REP |
1085 | 1087 |
1086 #undef SET_FIELD | 1088 #undef SET_FIELD |
1087 | 1089 |
1088 } // namespace syncer | 1090 } // namespace syncer |
OLD | NEW |