Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 212873003: Store the language code for the address in autofill profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 SET_STR(address_home_line1); 431 SET_STR(address_home_line1);
432 SET_STR(address_home_line2); 432 SET_STR(address_home_line2);
433 SET_STR(address_home_city); 433 SET_STR(address_home_city);
434 SET_STR(address_home_state); 434 SET_STR(address_home_state);
435 SET_STR(address_home_zip); 435 SET_STR(address_home_zip);
436 SET_STR(address_home_country); 436 SET_STR(address_home_country);
437 437
438 SET_STR(address_home_street_address); 438 SET_STR(address_home_street_address);
439 SET_STR(address_home_sorting_code); 439 SET_STR(address_home_sorting_code);
440 SET_STR(address_home_dependent_locality); 440 SET_STR(address_home_dependent_locality);
441 SET_STR(address_home_language_code);
441 442
442 SET_STR_REP(phone_home_whole_number); 443 SET_STR_REP(phone_home_whole_number);
443 return value; 444 return value;
444 } 445 }
445 446
446 base::DictionaryValue* MetaInfoToValue( 447 base::DictionaryValue* MetaInfoToValue(
447 const sync_pb::MetaInfo& proto) { 448 const sync_pb::MetaInfo& proto) {
448 base::DictionaryValue* value = new base::DictionaryValue(); 449 base::DictionaryValue* value = new base::DictionaryValue();
449 SET_STR(key); 450 SET_STR(key);
450 SET_STR(value); 451 SET_STR(value);
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 #undef SET_BYTES 1061 #undef SET_BYTES
1061 #undef SET_INT32 1062 #undef SET_INT32
1062 #undef SET_INT64 1063 #undef SET_INT64
1063 #undef SET_INT64_REP 1064 #undef SET_INT64_REP
1064 #undef SET_STR 1065 #undef SET_STR
1065 #undef SET_STR_REP 1066 #undef SET_STR_REP
1066 1067
1067 #undef SET_FIELD 1068 #undef SET_FIELD
1068 1069
1069 } // namespace syncer 1070 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698