Chromium Code Reviews| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 SET_STR(company_name); | 193 SET_STR(company_name); |
| 194 | 194 |
| 195 SET_STR(address_home_line1); | 195 SET_STR(address_home_line1); |
| 196 SET_STR(address_home_line2); | 196 SET_STR(address_home_line2); |
| 197 SET_STR(address_home_city); | 197 SET_STR(address_home_city); |
| 198 SET_STR(address_home_state); | 198 SET_STR(address_home_state); |
| 199 SET_STR(address_home_zip); | 199 SET_STR(address_home_zip); |
| 200 SET_STR(address_home_country); | 200 SET_STR(address_home_country); |
| 201 | 201 |
| 202 SET_STR(phone_home_whole_number); | 202 SET_STR(phone_home_whole_number); |
| 203 SET_STR(phone_fax_whole_number); | |
|
Ilya Sherman
2011/09/15 03:47:08
(If you're not changing the protobuf, this should
James Hawkins
2011/09/16 03:23:28
Done.
| |
| 204 return value; | 203 return value; |
| 205 } | 204 } |
| 206 | 205 |
| 207 DictionaryValue* BookmarkSpecificsToValue( | 206 DictionaryValue* BookmarkSpecificsToValue( |
| 208 const sync_pb::BookmarkSpecifics& proto) { | 207 const sync_pb::BookmarkSpecifics& proto) { |
| 209 DictionaryValue* value = new DictionaryValue(); | 208 DictionaryValue* value = new DictionaryValue(); |
| 210 SET_STR(url); | 209 SET_STR(url); |
| 211 SET_BYTES(favicon); | 210 SET_BYTES(favicon); |
| 212 SET_STR(title); | 211 SET_STR(title); |
| 213 return value; | 212 return value; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 337 #undef SET_BOOL | 336 #undef SET_BOOL |
| 338 #undef SET_BYTES | 337 #undef SET_BYTES |
| 339 #undef SET_INT32 | 338 #undef SET_INT32 |
| 340 #undef SET_INT64 | 339 #undef SET_INT64 |
| 341 #undef SET_INT64_REP | 340 #undef SET_INT64_REP |
| 342 #undef SET_STR | 341 #undef SET_STR |
| 343 | 342 |
| 344 #undef SET_EXTENSION | 343 #undef SET_EXTENSION |
| 345 | 344 |
| 346 } // namespace browser_sync | 345 } // namespace browser_sync |
| OLD | NEW |