| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/protocol/proto_value_conversions.h" | 7 #include "chrome/browser/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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 SET_STR(body_text); | 175 SET_STR(body_text); |
| 176 SET_STR(link_url); | 176 SET_STR(link_url); |
| 177 SET_STR(link_text); | 177 SET_STR(link_text); |
| 178 return value; | 178 return value; |
| 179 } | 179 } |
| 180 | 180 |
| 181 DictionaryValue* AppSpecificsToValue( | 181 DictionaryValue* AppSpecificsToValue( |
| 182 const sync_pb::AppSpecifics& proto) { | 182 const sync_pb::AppSpecifics& proto) { |
| 183 DictionaryValue* value = new DictionaryValue(); | 183 DictionaryValue* value = new DictionaryValue(); |
| 184 SET(extension, ExtensionSpecificsToValue); | 184 SET(extension, ExtensionSpecificsToValue); |
| 185 |
| 186 SET_INT32(app_launch_index); |
| 187 SET_INT32(page_index); |
| 188 |
| 185 return value; | 189 return value; |
| 186 } | 190 } |
| 187 | 191 |
| 188 DictionaryValue* AutofillSpecificsToValue( | 192 DictionaryValue* AutofillSpecificsToValue( |
| 189 const sync_pb::AutofillSpecifics& proto) { | 193 const sync_pb::AutofillSpecifics& proto) { |
| 190 DictionaryValue* value = new DictionaryValue(); | 194 DictionaryValue* value = new DictionaryValue(); |
| 191 SET_STR(name); | 195 SET_STR(name); |
| 192 SET_STR(value); | 196 SET_STR(value); |
| 193 SET_INT64_REP(usage_timestamp); | 197 SET_INT64_REP(usage_timestamp); |
| 194 SET(profile, AutofillProfileSpecificsToValue); | 198 SET(profile, AutofillProfileSpecificsToValue); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 #undef SET_BOOL | 368 #undef SET_BOOL |
| 365 #undef SET_BYTES | 369 #undef SET_BYTES |
| 366 #undef SET_INT32 | 370 #undef SET_INT32 |
| 367 #undef SET_INT64 | 371 #undef SET_INT64 |
| 368 #undef SET_INT64_REP | 372 #undef SET_INT64_REP |
| 369 #undef SET_STR | 373 #undef SET_STR |
| 370 | 374 |
| 371 #undef SET_EXTENSION | 375 #undef SET_EXTENSION |
| 372 | 376 |
| 373 } // namespace browser_sync | 377 } // namespace browser_sync |
| OLD | NEW |