| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "components/autofill/core/browser/autofill_test_utils.h" | 5 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 6 | 6 |
| 7 #include "base/guid.h" | 7 #include "base/guid.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/prefs/pref_service_factory.h" | 9 #include "base/prefs/pref_service_factory.h" |
| 10 #include "base/prefs/testing_pref_store.h" | 10 #include "base/prefs/testing_pref_store.h" |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 std::string type = card.type(); | 292 std::string type = card.type(); |
| 293 card.SetNumber(card.LastFourDigits()); | 293 card.SetNumber(card.LastFourDigits()); |
| 294 card.SetTypeForMaskedCard(type.c_str()); | 294 card.SetTypeForMaskedCard(type.c_str()); |
| 295 } | 295 } |
| 296 table->SetServerCreditCards(as_masked_cards); | 296 table->SetServerCreditCards(as_masked_cards); |
| 297 | 297 |
| 298 for (const CreditCard& card : cards) { | 298 for (const CreditCard& card : cards) { |
| 299 if (card.record_type() != CreditCard::FULL_SERVER_CARD) | 299 if (card.record_type() != CreditCard::FULL_SERVER_CARD) |
| 300 continue; | 300 continue; |
| 301 | 301 |
| 302 table->UnmaskServerCreditCard(card.server_id(), card.number()); | 302 table->UnmaskServerCreditCard(card, card.number()); |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 | 305 |
| 306 } // namespace test | 306 } // namespace test |
| 307 } // namespace autofill | 307 } // namespace autofill |
| OLD | NEW |