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

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

Issue 2740633002: [Autofill] Add upstreaming UKM (Closed)
Patch Set: Created 3 years, 9 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 "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/autofill/core/browser/personal_data_manager_observer.h" 8 #include "components/autofill/core/browser/personal_data_manager_observer.h"
9 9
10 namespace autofill { 10 namespace autofill {
11 11
12 TestPersonalDataManager::TestPersonalDataManager() 12 TestPersonalDataManager::TestPersonalDataManager()
13 : PersonalDataManager("en-US") {} 13 : PersonalDataManager("en-US", nullptr /* ukm_service */) {}
14 14
15 TestPersonalDataManager::~TestPersonalDataManager() {} 15 TestPersonalDataManager::~TestPersonalDataManager() {}
16 16
17 void TestPersonalDataManager::SetTestingPrefService(PrefService* pref_service) { 17 void TestPersonalDataManager::SetTestingPrefService(PrefService* pref_service) {
18 SetPrefService(pref_service); 18 SetPrefService(pref_service);
19 } 19 }
20 20
21 void TestPersonalDataManager::AddTestingProfile(AutofillProfile* profile) { 21 void TestPersonalDataManager::AddTestingProfile(AutofillProfile* profile) {
22 profiles_.push_back(profile); 22 profiles_.push_back(profile);
23 NotifyPersonalDataChanged(); 23 NotifyPersonalDataChanged();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 return default_country_code_; 72 return default_country_code_;
73 } 73 }
74 74
75 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles( 75 const std::vector<AutofillProfile*>& TestPersonalDataManager::GetProfiles(
76 bool record_metrics) const { 76 bool record_metrics) const {
77 return profiles_; 77 return profiles_;
78 } 78 }
79 79
80 } // namespace autofill 80 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698