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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 base::DictionaryValue* ExtensionSpecificsToValue( | 545 base::DictionaryValue* ExtensionSpecificsToValue( |
546 const sync_pb::ExtensionSpecifics& proto) { | 546 const sync_pb::ExtensionSpecifics& proto) { |
547 base::DictionaryValue* value = new base::DictionaryValue(); | 547 base::DictionaryValue* value = new base::DictionaryValue(); |
548 SET_STR(id); | 548 SET_STR(id); |
549 SET_STR(version); | 549 SET_STR(version); |
550 SET_STR(update_url); | 550 SET_STR(update_url); |
551 SET_BOOL(enabled); | 551 SET_BOOL(enabled); |
552 SET_BOOL(incognito_enabled); | 552 SET_BOOL(incognito_enabled); |
553 SET_BOOL(remote_install); | 553 SET_BOOL(remote_install); |
| 554 SET_BOOL(installed_by_custodian); |
554 SET_STR(name); | 555 SET_STR(name); |
555 return value; | 556 return value; |
556 } | 557 } |
557 | 558 |
558 namespace { | 559 namespace { |
559 base::DictionaryValue* FaviconDataToValue( | 560 base::DictionaryValue* FaviconDataToValue( |
560 const sync_pb::FaviconData& proto) { | 561 const sync_pb::FaviconData& proto) { |
561 base::DictionaryValue* value = new base::DictionaryValue(); | 562 base::DictionaryValue* value = new base::DictionaryValue(); |
562 SET_BYTES(favicon); | 563 SET_BYTES(favicon); |
563 SET_INT32(width); | 564 SET_INT32(width); |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 #undef SET_BYTES | 1110 #undef SET_BYTES |
1110 #undef SET_INT32 | 1111 #undef SET_INT32 |
1111 #undef SET_INT64 | 1112 #undef SET_INT64 |
1112 #undef SET_INT64_REP | 1113 #undef SET_INT64_REP |
1113 #undef SET_STR | 1114 #undef SET_STR |
1114 #undef SET_STR_REP | 1115 #undef SET_STR_REP |
1115 | 1116 |
1116 #undef SET_FIELD | 1117 #undef SET_FIELD |
1117 | 1118 |
1118 } // namespace syncer | 1119 } // namespace syncer |
OLD | NEW |