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

Side by Side Diff: components/autofill/core/browser/test_personal_data_manager.cc

Issue 884843002: Recording in UMA when a user interacted with an address form or a credit card form. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing test_personal_data_manager. Created 5 years, 10 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
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/core/browser/test_personal_data_manager.h" 5 #include "components/autofill/core/browser/test_personal_data_manager.h"
6 6
7 #include "components/autofill/core/browser/personal_data_manager_observer.h" 7 #include "components/autofill/core/browser/personal_data_manager_observer.h"
8 8
9 namespace autofill { 9 namespace autofill {
10 10
(...skipping 10 matching lines...) Expand all
21 void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) { 21 void TestPersonalDataManager::AddTestingCreditCard(CreditCard* credit_card) {
22 credit_cards_.push_back(credit_card); 22 credit_cards_.push_back(credit_card);
23 NotifyPersonalDataChanged(); 23 NotifyPersonalDataChanged();
24 } 24 }
25 25
26 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles() 26 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles()
27 const { 27 const {
28 return profiles_; 28 return profiles_;
29 } 29 }
30 30
31 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles(
32 bool record_metrics) const {
33 return profiles_;
34 }
35
31 const std::vector<AutofillProfile*>& TestPersonalDataManager::web_profiles() 36 const std::vector<AutofillProfile*>& TestPersonalDataManager::web_profiles()
32 const { 37 const {
33 return profiles_; 38 return profiles_;
34 } 39 }
35 40
36 const std::vector<CreditCard*>& TestPersonalDataManager:: 41 const std::vector<CreditCard*>& TestPersonalDataManager::
37 GetCreditCards() const { 42 GetCreditCards() const {
38 return credit_cards_; 43 return credit_cards_;
39 } 44 }
40 45
(...skipping 16 matching lines...) Expand all
57 62
58 const std::string& TestPersonalDataManager::GetDefaultCountryCodeForNewAddress() 63 const std::string& TestPersonalDataManager::GetDefaultCountryCodeForNewAddress()
59 const { 64 const {
60 if (default_country_code_.empty()) 65 if (default_country_code_.empty())
61 return PersonalDataManager::GetDefaultCountryCodeForNewAddress(); 66 return PersonalDataManager::GetDefaultCountryCodeForNewAddress();
62 67
63 return default_country_code_; 68 return default_country_code_;
64 } 69 }
65 70
66 } // namespace autofill 71 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698