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

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

Issue 7608032: [Sync] Remove AutofillCreditCard specifics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 9 years, 4 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) 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 return value; 168 return value;
169 } 169 }
170 170
171 DictionaryValue* AutofillSpecificsToValue( 171 DictionaryValue* AutofillSpecificsToValue(
172 const sync_pb::AutofillSpecifics& proto) { 172 const sync_pb::AutofillSpecifics& proto) {
173 DictionaryValue* value = new DictionaryValue(); 173 DictionaryValue* value = new DictionaryValue();
174 SET_STR(name); 174 SET_STR(name);
175 SET_STR(value); 175 SET_STR(value);
176 SET_INT64_REP(usage_timestamp); 176 SET_INT64_REP(usage_timestamp);
177 SET(profile, AutofillProfileSpecificsToValue); 177 SET(profile, AutofillProfileSpecificsToValue);
178 SET_BYTES(encrypted_credit_card);
179 SET(credit_card, AutofillCreditCardSpecificsToValue);
180 return value; 178 return value;
181 } 179 }
182 180
183 DictionaryValue* AutofillCreditCardSpecificsToValue(
184 const sync_pb::AutofillCreditCardSpecifics& proto) {
185 DictionaryValue* value = new DictionaryValue();
186 SET_STR(label);
187 SET_STR(name_on_card);
188 SET_STR(type);
189 SET_STR(card_number);
190 SET_STR(expiration_month);
191 SET_STR(expiration_year);
192 SET_STR(verification_code);
193 SET_STR(billing_address);
194 SET_STR(shipping_address);
195 return value;
196 }
197
198 DictionaryValue* AutofillProfileSpecificsToValue( 181 DictionaryValue* AutofillProfileSpecificsToValue(
199 const sync_pb::AutofillProfileSpecifics& proto) { 182 const sync_pb::AutofillProfileSpecifics& proto) {
200 DictionaryValue* value = new DictionaryValue(); 183 DictionaryValue* value = new DictionaryValue();
201 SET_STR(label); 184 SET_STR(label);
202 SET_STR(guid); 185 SET_STR(guid);
203 186
204 SET_STR(name_first); 187 SET_STR(name_first);
205 SET_STR(name_middle); 188 SET_STR(name_middle);
206 SET_STR(name_last); 189 SET_STR(name_last);
207 SET_STR(email_address); 190 SET_STR(email_address);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 #undef SET_BOOL 335 #undef SET_BOOL
353 #undef SET_BYTES 336 #undef SET_BYTES
354 #undef SET_INT32 337 #undef SET_INT32
355 #undef SET_INT64 338 #undef SET_INT64
356 #undef SET_INT64_REP 339 #undef SET_INT64_REP
357 #undef SET_STR 340 #undef SET_STR
358 341
359 #undef SET_EXTENSION 342 #undef SET_EXTENSION
360 343
361 } // namespace browser_sync 344 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698