Index: chrome/browser/browsing_data/autofill_counter_browsertest.cc |
diff --git a/chrome/browser/browsing_data/autofill_counter_browsertest.cc b/chrome/browser/browsing_data/autofill_counter_browsertest.cc |
index 6e3e1c685efb916ed2e794a2ff32c35e95a332d1..913c763b9218139d4ea95680dc5a339beb5185d2 100644 |
--- a/chrome/browser/browsing_data/autofill_counter_browsertest.cc |
+++ b/chrome/browser/browsing_data/autofill_counter_browsertest.cc |
@@ -205,8 +205,10 @@ class AutofillCounterTest : public InProcessBrowserTest { |
IN_PROC_BROWSER_TEST_F(AutofillCounterTest, AutocompleteSuggestions) { |
Profile* profile = browser()->profile(); |
browsing_data::AutofillCounter counter(GetWebDataService()); |
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
EXPECT_EQ(0, GetNumSuggestions()); |
@@ -241,8 +243,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, AutocompleteSuggestions) { |
IN_PROC_BROWSER_TEST_F(AutofillCounterTest, CreditCards) { |
Profile* profile = browser()->profile(); |
browsing_data::AutofillCounter counter(GetWebDataService()); |
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
EXPECT_EQ(0, GetNumCreditCards()); |
@@ -277,8 +281,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, CreditCards) { |
IN_PROC_BROWSER_TEST_F(AutofillCounterTest, Addresses) { |
Profile* profile = browser()->profile(); |
browsing_data::AutofillCounter counter(GetWebDataService()); |
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
EXPECT_EQ(0, GetNumAddresses()); |
@@ -327,8 +333,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, ComplexResult) { |
Profile* profile = browser()->profile(); |
browsing_data::AutofillCounter counter(GetWebDataService()); |
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
EXPECT_EQ(5, GetNumSuggestions()); |
@@ -382,8 +390,10 @@ IN_PROC_BROWSER_TEST_F(AutofillCounterTest, TimeRanges) { |
Profile* profile = browser()->profile(); |
browsing_data::AutofillCounter counter(GetWebDataService()); |
- counter.Init(profile->GetPrefs(), base::Bind(&AutofillCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&AutofillCounterTest::Callback, base::Unretained(this))); |
for (const TestCase& test_case : test_cases) { |
counter.SetPeriodStartForTesting(test_case.period_start); |