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

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

Issue 2664253006: Clears out external protocol data when cookies and site data is cleared. (Closed)
Patch Set: a 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/chrome_browsing_data_remover_delegate_unittest.cc
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc
index cc3445ca3344ebd7f9160d1d8b930340312b250f..26ddb051aed6170bd63640aeeb046360ad009d96 100644
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc
@@ -1056,6 +1056,23 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest,
}
#endif
+TEST_F(ChromeBrowsingDataRemoverDelegateTest, RemoveExternalProtocolData) {
+ TestingProfile* profile = GetProfile();
+ // Add external protocol data on profile.
+ base::DictionaryValue prefs;
+ prefs.SetBoolean("tel", true);
+ profile->GetPrefs()->Set(prefs::kExcludedSchemes, prefs);
+
+ EXPECT_FALSE(
+ profile->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty());
+
+ BlockUntilBrowsingDataRemoved(
+ AnHourAgo(), base::Time::Max(),
+ BrowsingDataRemover::REMOVE_EXTERNAL_PROTOCOL_DATA, false);
+ EXPECT_TRUE(
+ profile->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty());
+}
+
// Test that clearing history deletes favicons not associated with bookmarks.
TEST_F(ChromeBrowsingDataRemoverDelegateTest, RemoveFaviconsForever) {
GURL page_url("http://a");

Powered by Google App Engine
This is Rietveld 408576698