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

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

Issue 16024018: [Autofill] Sync Autofill profiles' origins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 SET_INT64_REP(usage_timestamp); 280 SET_INT64_REP(usage_timestamp);
281 SET(profile, AutofillProfileSpecificsToValue); 281 SET(profile, AutofillProfileSpecificsToValue);
282 return value; 282 return value;
283 } 283 }
284 284
285 base::DictionaryValue* AutofillProfileSpecificsToValue( 285 base::DictionaryValue* AutofillProfileSpecificsToValue(
286 const sync_pb::AutofillProfileSpecifics& proto) { 286 const sync_pb::AutofillProfileSpecifics& proto) {
287 base::DictionaryValue* value = new base::DictionaryValue(); 287 base::DictionaryValue* value = new base::DictionaryValue();
288 SET_STR(label); 288 SET_STR(label);
289 SET_STR(guid); 289 SET_STR(guid);
290 SET_STR(origin);
290 291
291 SET_STR_REP(name_first); 292 SET_STR_REP(name_first);
292 SET_STR_REP(name_middle); 293 SET_STR_REP(name_middle);
293 SET_STR_REP(name_last); 294 SET_STR_REP(name_last);
294 SET_STR_REP(email_address); 295 SET_STR_REP(email_address);
295 SET_STR(company_name); 296 SET_STR(company_name);
296 297
297 SET_STR(address_home_line1); 298 SET_STR(address_home_line1);
298 SET_STR(address_home_line2); 299 SET_STR(address_home_line2);
299 SET_STR(address_home_city); 300 SET_STR(address_home_city);
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 #undef SET_BYTES 856 #undef SET_BYTES
856 #undef SET_INT32 857 #undef SET_INT32
857 #undef SET_INT64 858 #undef SET_INT64
858 #undef SET_INT64_REP 859 #undef SET_INT64_REP
859 #undef SET_STR 860 #undef SET_STR
860 #undef SET_STR_REP 861 #undef SET_STR_REP
861 862
862 #undef SET_FIELD 863 #undef SET_FIELD
863 864
864 } // namespace syncer 865 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698