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

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: Rebase 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
« no previous file with comments | « sync/protocol/autofill_specifics.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 SET_STR(value); 279 SET_STR(value);
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(guid); 288 SET_STR(guid);
289 SET_STR(origin);
289 290
290 SET_STR_REP(name_first); 291 SET_STR_REP(name_first);
291 SET_STR_REP(name_middle); 292 SET_STR_REP(name_middle);
292 SET_STR_REP(name_last); 293 SET_STR_REP(name_last);
293 SET_STR_REP(email_address); 294 SET_STR_REP(email_address);
294 SET_STR(company_name); 295 SET_STR(company_name);
295 296
296 SET_STR(address_home_line1); 297 SET_STR(address_home_line1);
297 SET_STR(address_home_line2); 298 SET_STR(address_home_line2);
298 SET_STR(address_home_city); 299 SET_STR(address_home_city);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 #undef SET_BYTES 857 #undef SET_BYTES
857 #undef SET_INT32 858 #undef SET_INT32
858 #undef SET_INT64 859 #undef SET_INT64
859 #undef SET_INT64_REP 860 #undef SET_INT64_REP
860 #undef SET_STR 861 #undef SET_STR
861 #undef SET_STR_REP 862 #undef SET_STR_REP
862 863
863 #undef SET_FIELD 864 #undef SET_FIELD
864 865
865 } // namespace syncer 866 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/autofill_specifics.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698