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

Side by Side Diff: components/autofill/content/browser/wallet/mock_wallet_client.cc

Issue 100743006: Fix DCHECK() when updating instruments with no phone number. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: estade@ review Created 7 years 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 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/content/browser/wallet/mock_wallet_client.h" 5 #include "components/autofill/content/browser/wallet/mock_wallet_client.h"
6 6
7 namespace autofill { 7 namespace autofill {
8 namespace wallet { 8 namespace wallet {
9 9
10 MockWalletClient::MockWalletClient(net::URLRequestContextGetter* context, 10 MockWalletClient::MockWalletClient(net::URLRequestContextGetter* context,
11 wallet::WalletClientDelegate* delegate, 11 wallet::WalletClientDelegate* delegate,
12 const GURL& source_url) 12 const GURL& source_url)
13 : wallet::WalletClient(context, delegate, source_url) {} 13 : wallet::WalletClient(context, delegate, source_url) {}
14 14
15 MockWalletClient::~MockWalletClient() {} 15 MockWalletClient::~MockWalletClient() {}
16 16
17 void MockWalletClient::SaveToWallet(scoped_ptr<wallet::Instrument> instrument, 17 void MockWalletClient::SaveToWallet(
18 scoped_ptr<wallet::Address> address) { 18 scoped_ptr<Instrument> instrument,
19 SaveToWalletMock(instrument.get(), address.get()); 19 scoped_ptr<Address> address,
20 const WalletItems::MaskedInstrument* reference_instrument,
21 const Address* reference_address) {
22 SaveToWalletMock(instrument.get(),
23 address.get(),
24 reference_instrument,
25 reference_address);
20 } 26 }
21 27
22 } // namespace wallet 28 } // namespace wallet
23 } // namespace autofill 29 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698