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

Side by Side Diff: components/autofill/browser/wallet/wallet_client.cc

Issue 12457033: Implements SendAutocheckoutStatus API calls for stats tracking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing unit tests Created 7 years, 8 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) 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 &trimmed); 682 &trimmed);
683 delegate_->OnDidAuthenticateInstrument( 683 delegate_->OnDidAuthenticateInstrument(
684 LowerCaseEqualsASCII(trimmed, "success")); 684 LowerCaseEqualsASCII(trimmed, "success"));
685 } else { 685 } else {
686 HandleMalformedResponse(); 686 HandleMalformedResponse();
687 } 687 }
688 break; 688 break;
689 } 689 }
690 690
691 case SEND_STATUS: 691 case SEND_STATUS:
692 delegate_->OnDidSendAutocheckoutStatus();
693 break; 692 break;
694 693
695 case GET_FULL_WALLET: { 694 case GET_FULL_WALLET: {
696 scoped_ptr<FullWallet> full_wallet( 695 scoped_ptr<FullWallet> full_wallet(
697 FullWallet::CreateFullWallet(*response_dict)); 696 FullWallet::CreateFullWallet(*response_dict));
698 if (full_wallet) { 697 if (full_wallet) {
699 full_wallet->set_one_time_pad(one_time_pad_); 698 full_wallet->set_one_time_pad(one_time_pad_);
700 LogRequiredActions(full_wallet->required_actions()); 699 LogRequiredActions(full_wallet->required_actions());
701 delegate_->OnDidGetFullWallet(full_wallet.Pass()); 700 delegate_->OnDidGetFullWallet(full_wallet.Pass());
702 } else { 701 } else {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 NOTREACHED(); 924 NOTREACHED();
926 return AutofillMetrics::UNKNOWN_API_CALL; 925 return AutofillMetrics::UNKNOWN_API_CALL;
927 } 926 }
928 927
929 NOTREACHED(); 928 NOTREACHED();
930 return AutofillMetrics::UNKNOWN_API_CALL; 929 return AutofillMetrics::UNKNOWN_API_CALL;
931 } 930 }
932 931
933 } // namespace wallet 932 } // namespace wallet
934 } // namespace autofill 933 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698