| 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 "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 return value; | 261 return value; |
| 262 } | 262 } |
| 263 | 263 |
| 264 base::DictionaryValue* AppSpecificsToValue( | 264 base::DictionaryValue* AppSpecificsToValue( |
| 265 const sync_pb::AppSpecifics& proto) { | 265 const sync_pb::AppSpecifics& proto) { |
| 266 base::DictionaryValue* value = new base::DictionaryValue(); | 266 base::DictionaryValue* value = new base::DictionaryValue(); |
| 267 SET(extension, ExtensionSpecificsToValue); | 267 SET(extension, ExtensionSpecificsToValue); |
| 268 SET(notification_settings, AppSettingsToValue); | 268 SET(notification_settings, AppSettingsToValue); |
| 269 SET_STR(app_launch_ordinal); | 269 SET_STR(app_launch_ordinal); |
| 270 SET_STR(page_ordinal); | 270 SET_STR(page_ordinal); |
| 271 SET_STR(app_list_ordinal); |
| 271 | 272 |
| 272 return value; | 273 return value; |
| 273 } | 274 } |
| 274 | 275 |
| 275 base::DictionaryValue* AutofillSpecificsToValue( | 276 base::DictionaryValue* AutofillSpecificsToValue( |
| 276 const sync_pb::AutofillSpecifics& proto) { | 277 const sync_pb::AutofillSpecifics& proto) { |
| 277 base::DictionaryValue* value = new base::DictionaryValue(); | 278 base::DictionaryValue* value = new base::DictionaryValue(); |
| 278 SET_STR(name); | 279 SET_STR(name); |
| 279 SET_STR(value); | 280 SET_STR(value); |
| 280 SET_INT64_REP(usage_timestamp); | 281 SET_INT64_REP(usage_timestamp); |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 #undef SET_BYTES | 852 #undef SET_BYTES |
| 852 #undef SET_INT32 | 853 #undef SET_INT32 |
| 853 #undef SET_INT64 | 854 #undef SET_INT64 |
| 854 #undef SET_INT64_REP | 855 #undef SET_INT64_REP |
| 855 #undef SET_STR | 856 #undef SET_STR |
| 856 #undef SET_STR_REP | 857 #undef SET_STR_REP |
| 857 | 858 |
| 858 #undef SET_FIELD | 859 #undef SET_FIELD |
| 859 | 860 |
| 860 } // namespace syncer | 861 } // namespace syncer |
| OLD | NEW |