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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 SET_INT64(date_created); | 395 SET_INT64(date_created); |
396 SET_STR(input_encodings); | 396 SET_STR(input_encodings); |
397 SET_BOOL(show_in_default_list); | 397 SET_BOOL(show_in_default_list); |
398 SET_STR(suggestions_url); | 398 SET_STR(suggestions_url); |
399 SET_INT32(prepopulate_id); | 399 SET_INT32(prepopulate_id); |
400 SET_BOOL(autogenerate_keyword); | 400 SET_BOOL(autogenerate_keyword); |
401 SET_STR(instant_url); | 401 SET_STR(instant_url); |
402 SET_INT64(last_modified); | 402 SET_INT64(last_modified); |
403 SET_STR(sync_guid); | 403 SET_STR(sync_guid); |
404 SET_STR_REP(alternate_urls); | 404 SET_STR_REP(alternate_urls); |
| 405 SET_STR(search_terms_replacement_key); |
405 return value; | 406 return value; |
406 } | 407 } |
407 | 408 |
408 DictionaryValue* SessionSpecificsToValue( | 409 DictionaryValue* SessionSpecificsToValue( |
409 const sync_pb::SessionSpecifics& proto) { | 410 const sync_pb::SessionSpecifics& proto) { |
410 DictionaryValue* value = new DictionaryValue(); | 411 DictionaryValue* value = new DictionaryValue(); |
411 SET_STR(session_tag); | 412 SET_STR(session_tag); |
412 SET(header, SessionHeaderToValue); | 413 SET(header, SessionHeaderToValue); |
413 SET(tab, SessionTabToValue); | 414 SET(tab, SessionTabToValue); |
414 SET_INT32(tab_node_id); | 415 SET_INT32(tab_node_id); |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 #undef SET_BYTES | 706 #undef SET_BYTES |
706 #undef SET_INT32 | 707 #undef SET_INT32 |
707 #undef SET_INT64 | 708 #undef SET_INT64 |
708 #undef SET_INT64_REP | 709 #undef SET_INT64_REP |
709 #undef SET_STR | 710 #undef SET_STR |
710 #undef SET_STR_REP | 711 #undef SET_STR_REP |
711 | 712 |
712 #undef SET_FIELD | 713 #undef SET_FIELD |
713 | 714 |
714 } // namespace syncer | 715 } // namespace syncer |
OLD | NEW |