| OLD | NEW |
| 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 #include "components/autofill/browser/wallet/wallet_client.h" | 5 #include "components/autofill/browser/wallet/wallet_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 &trimmed); | 663 &trimmed); |
| 664 delegate_->OnDidAuthenticateInstrument( | 664 delegate_->OnDidAuthenticateInstrument( |
| 665 LowerCaseEqualsASCII(trimmed, "success")); | 665 LowerCaseEqualsASCII(trimmed, "success")); |
| 666 } else { | 666 } else { |
| 667 HandleMalformedResponse(); | 667 HandleMalformedResponse(); |
| 668 } | 668 } |
| 669 break; | 669 break; |
| 670 } | 670 } |
| 671 | 671 |
| 672 case SEND_STATUS: | 672 case SEND_STATUS: |
| 673 delegate_->OnDidSendAutocheckoutStatus(); | |
| 674 break; | 673 break; |
| 675 | 674 |
| 676 case GET_FULL_WALLET: { | 675 case GET_FULL_WALLET: { |
| 677 scoped_ptr<FullWallet> full_wallet( | 676 scoped_ptr<FullWallet> full_wallet( |
| 678 FullWallet::CreateFullWallet(*response_dict)); | 677 FullWallet::CreateFullWallet(*response_dict)); |
| 679 if (full_wallet) { | 678 if (full_wallet) { |
| 680 full_wallet->set_one_time_pad(one_time_pad_); | 679 full_wallet->set_one_time_pad(one_time_pad_); |
| 681 LogRequiredActions(full_wallet->required_actions()); | 680 LogRequiredActions(full_wallet->required_actions()); |
| 682 delegate_->OnDidGetFullWallet(full_wallet.Pass()); | 681 delegate_->OnDidGetFullWallet(full_wallet.Pass()); |
| 683 } else { | 682 } else { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 const std::vector<RequiredAction>& required_actions) const { | 873 const std::vector<RequiredAction>& required_actions) const { |
| 875 for (size_t i = 0; i < required_actions.size(); ++i) { | 874 for (size_t i = 0; i < required_actions.size(); ++i) { |
| 876 delegate_->GetMetricLogger().LogWalletRequiredActionMetric( | 875 delegate_->GetMetricLogger().LogWalletRequiredActionMetric( |
| 877 delegate_->GetDialogType(), | 876 delegate_->GetDialogType(), |
| 878 RequiredActionToUmaMetric(required_actions[i])); | 877 RequiredActionToUmaMetric(required_actions[i])); |
| 879 } | 878 } |
| 880 } | 879 } |
| 881 | 880 |
| 882 } // namespace wallet | 881 } // namespace wallet |
| 883 } // namespace autofill | 882 } // namespace autofill |
| OLD | NEW |