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

Unified Diff: chrome/browser/browsing_data/media_licenses_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/media_licenses_counter_browsertest.cc
diff --git a/chrome/browser/browsing_data/media_licenses_counter_browsertest.cc b/chrome/browser/browsing_data/media_licenses_counter_browsertest.cc
index 7e216c41c6eed2129266754e0b588d080268496d..b638711e25b9764ccadadaf8faa2dc71000363b6 100644
--- a/chrome/browser/browsing_data/media_licenses_counter_browsertest.cc
+++ b/chrome/browser/browsing_data/media_licenses_counter_browsertest.cc
@@ -185,20 +185,6 @@ IN_PROC_BROWSER_TEST_F(MediaLicensesCounterTest, NonEmpty) {
EXPECT_EQ(kOrigin.host(), GetOrigin());
}
-// Tests that the counter does not count if the deletion preference is false.
-IN_PROC_BROWSER_TEST_F(MediaLicensesCounterTest, PrefIsFalse) {
- SetMediaLicenseDeletionPref(false);
-
- Profile* profile = browser()->profile();
- MediaLicensesCounter counter(profile);
- counter.Init(profile->GetPrefs(),
- base::Bind(&MediaLicensesCounterTest::CountingCallback,
- base::Unretained(this)));
- counter.Restart();
-
- EXPECT_FALSE(CallbackCalled());
-}
-
// Tests that the counter starts counting automatically when the deletion
// pref changes to true.
IN_PROC_BROWSER_TEST_F(MediaLicensesCounterTest, PrefChanged) {

Powered by Google App Engine
This is Rietveld 408576698