Index: chrome/browser/browsing_data/passwords_counter_browsertest.cc |
diff --git a/chrome/browser/browsing_data/passwords_counter_browsertest.cc b/chrome/browser/browsing_data/passwords_counter_browsertest.cc |
index c0bf27638c6c2ea2814321749ce18aff1028e03a..306b102c7cbd97a2586c6bace53549a1818fdcdb 100644 |
--- a/chrome/browser/browsing_data/passwords_counter_browsertest.cc |
+++ b/chrome/browser/browsing_data/passwords_counter_browsertest.cc |
@@ -138,8 +138,10 @@ IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, SameDomain) { |
Profile* profile = browser()->profile(); |
browsing_data::PasswordsCounter counter(PasswordStoreFactory::GetForProfile( |
profile, ServiceAccessType::EXPLICIT_ACCESS)); |
- counter.Init(profile->GetPrefs(), base::Bind(&PasswordsCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&PasswordsCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
@@ -156,8 +158,10 @@ IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, Blacklisted) { |
browsing_data::PasswordsCounter counter(PasswordStoreFactory::GetForProfile( |
profile, ServiceAccessType::EXPLICIT_ACCESS)); |
- counter.Init(profile->GetPrefs(), base::Bind(&PasswordsCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&PasswordsCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
@@ -174,8 +178,10 @@ IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, PrefChanged) { |
Profile* profile = browser()->profile(); |
browsing_data::PasswordsCounter counter(PasswordStoreFactory::GetForProfile( |
profile, ServiceAccessType::EXPLICIT_ACCESS)); |
- counter.Init(profile->GetPrefs(), base::Bind(&PasswordsCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&PasswordsCounterTest::Callback, base::Unretained(this))); |
SetPasswordsDeletionPref(true); |
WaitForCounting(); |
@@ -190,8 +196,10 @@ IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, StoreChanged) { |
Profile* profile = browser()->profile(); |
browsing_data::PasswordsCounter counter(PasswordStoreFactory::GetForProfile( |
profile, ServiceAccessType::EXPLICIT_ACCESS)); |
- counter.Init(profile->GetPrefs(), base::Bind(&PasswordsCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&PasswordsCounterTest::Callback, base::Unretained(this))); |
counter.Restart(); |
WaitForCounting(); |
@@ -220,8 +228,10 @@ IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, PeriodChanged) { |
Profile* profile = browser()->profile(); |
browsing_data::PasswordsCounter counter(PasswordStoreFactory::GetForProfile( |
profile, ServiceAccessType::EXPLICIT_ACCESS)); |
- counter.Init(profile->GetPrefs(), base::Bind(&PasswordsCounterTest::Callback, |
- base::Unretained(this))); |
+ counter.Init( |
+ profile->GetPrefs(), |
+ browsing_data::ClearBrowsingDataPreferenceType::DEFAULT, |
+ base::Bind(&PasswordsCounterTest::Callback, base::Unretained(this))); |
SetDeletionPeriodPref(browsing_data::LAST_HOUR); |
WaitForCounting(); |