| 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..d85c8896faa41056230eabf28cda0795613a14e2 100644
|
| --- a/chrome/browser/browsing_data/autofill_counter_browsertest.cc
|
| +++ b/chrome/browser/browsing_data/autofill_counter_browsertest.cc
|
| @@ -36,7 +36,7 @@ class AutofillCounterTest : public InProcessBrowserTest {
|
| browser()->profile(), ServiceAccessType::IMPLICIT_ACCESS);
|
|
|
| SetAutofillDeletionPref(true);
|
| - SetDeletionPeriodPref(browsing_data::ALL_TIME);
|
| + SetDeletionPeriodPref(browsing_data::TimePeriod::ALL_TIME);
|
| }
|
|
|
| // Autocomplete suggestions --------------------------------------------------
|
| @@ -205,8 +205,9 @@ 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::ClearBrowsingDataTab::ADVANCED,
|
| + base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
|
| counter.Restart();
|
| WaitForCounting();
|
| EXPECT_EQ(0, GetNumSuggestions());
|
| @@ -241,8 +242,9 @@ 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::ClearBrowsingDataTab::ADVANCED,
|
| + base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
|
| counter.Restart();
|
| WaitForCounting();
|
| EXPECT_EQ(0, GetNumCreditCards());
|
| @@ -277,8 +279,9 @@ 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::ClearBrowsingDataTab::ADVANCED,
|
| + base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
|
| counter.Restart();
|
| WaitForCounting();
|
| EXPECT_EQ(0, GetNumAddresses());
|
| @@ -327,8 +330,9 @@ 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::ClearBrowsingDataTab::ADVANCED,
|
| + base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
|
| counter.Restart();
|
| WaitForCounting();
|
| EXPECT_EQ(5, GetNumSuggestions());
|
| @@ -382,8 +386,9 @@ 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::ClearBrowsingDataTab::ADVANCED,
|
| + base::Bind(&AutofillCounterTest::Callback, base::Unretained(this)));
|
|
|
| for (const TestCase& test_case : test_cases) {
|
| counter.SetPeriodStartForTesting(test_case.period_start);
|
|
|