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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 base::DictionaryValue* ExtensionSpecificsToValue( | 453 base::DictionaryValue* ExtensionSpecificsToValue( |
454 const sync_pb::ExtensionSpecifics& proto) { | 454 const sync_pb::ExtensionSpecifics& proto) { |
455 base::DictionaryValue* value = new base::DictionaryValue(); | 455 base::DictionaryValue* value = new base::DictionaryValue(); |
456 SET_STR(id); | 456 SET_STR(id); |
457 SET_STR(version); | 457 SET_STR(version); |
458 SET_STR(update_url); | 458 SET_STR(update_url); |
459 SET_BOOL(enabled); | 459 SET_BOOL(enabled); |
460 SET_BOOL(incognito_enabled); | 460 SET_BOOL(incognito_enabled); |
461 SET_BOOL(remote_install); | 461 SET_BOOL(remote_install); |
462 SET_BOOL(installed_by_custodian); | 462 SET_BOOL(installed_by_custodian); |
| 463 SET_BOOL(all_urls_enabled); |
463 SET_STR(name); | 464 SET_STR(name); |
464 return value; | 465 return value; |
465 } | 466 } |
466 | 467 |
467 namespace { | 468 namespace { |
468 base::DictionaryValue* FaviconDataToValue( | 469 base::DictionaryValue* FaviconDataToValue( |
469 const sync_pb::FaviconData& proto) { | 470 const sync_pb::FaviconData& proto) { |
470 base::DictionaryValue* value = new base::DictionaryValue(); | 471 base::DictionaryValue* value = new base::DictionaryValue(); |
471 SET_BYTES(favicon); | 472 SET_BYTES(favicon); |
472 SET_INT32(width); | 473 SET_INT32(width); |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 #undef SET_BYTES | 1064 #undef SET_BYTES |
1064 #undef SET_INT32 | 1065 #undef SET_INT32 |
1065 #undef SET_INT64 | 1066 #undef SET_INT64 |
1066 #undef SET_INT64_REP | 1067 #undef SET_INT64_REP |
1067 #undef SET_STR | 1068 #undef SET_STR |
1068 #undef SET_STR_REP | 1069 #undef SET_STR_REP |
1069 | 1070 |
1070 #undef SET_FIELD | 1071 #undef SET_FIELD |
1071 | 1072 |
1072 } // namespace syncer | 1073 } // namespace syncer |
OLD | NEW |