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

Unified Diff: chrome/browser/browsing_data/passwords_counter_browsertest.cc

Issue 2671743002: Separate state of basic and advanced tab in CBD dialog (Closed)
Patch Set: fix .classpath file Created 3 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 side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698