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

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

Issue 2623033003: Always show counters in the material design Clear Browsing Data dialog. (Closed)
Patch Set: iOS fix #2 Created 3 years, 11 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 7f69ab778d909f541fe30e41a0997cf436ddb02f..c0bf27638c6c2ea2814321749ce18aff1028e03a 100644
--- a/chrome/browser/browsing_data/passwords_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/passwords_counter_browsertest.cc
@@ -182,22 +182,6 @@ IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, PrefChanged) {
EXPECT_EQ(2u, GetResult());
}
-// Tests that the counter does not count passwords if the deletion
-// preference is false.
-IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, PrefIsFalse) {
- SetPasswordsDeletionPref(false);
- AddLogin("https://www.google.com", "user", false);
-
- 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.Restart();
-
- EXPECT_FALSE(counter.cancelable_task_tracker()->HasTrackedTasks());
-}
-
// Tests that the counter starts counting automatically when
// the password store changes.
IN_PROC_BROWSER_TEST_F(PasswordsCounterTest, StoreChanged) {

Powered by Google App Engine
This is Rietveld 408576698