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

Unified Diff: chrome/browser/external_protocol/external_protocol_handler_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
« no previous file with comments | « chrome/browser/external_protocol/external_protocol_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/external_protocol/external_protocol_handler_unittest.cc
diff --git a/chrome/browser/external_protocol/external_protocol_handler_unittest.cc b/chrome/browser/external_protocol/external_protocol_handler_unittest.cc
index 62e4c31f4c3201accb7c763a9e3540e27050483f..150d509b885e2a710abc199c8633e8cfbd7467d8 100644
--- a/chrome/browser/external_protocol/external_protocol_handler_unittest.cc
+++ b/chrome/browser/external_protocol/external_protocol_handler_unittest.cc
@@ -260,3 +260,14 @@ TEST_F(ExternalProtocolHandlerTest,
ASSERT_FALSE(
profile_->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty());
}
+
+TEST_F(ExternalProtocolHandlerTest, TestClearProfileState) {
+ base::DictionaryValue prefs;
+ prefs.SetBoolean("tel", true);
+ profile_->GetPrefs()->Set(prefs::kExcludedSchemes, prefs);
+ ASSERT_FALSE(
+ profile_->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty());
+ ExternalProtocolHandler::ClearData(profile_.get());
+ ASSERT_TRUE(
+ profile_->GetPrefs()->GetDictionary(prefs::kExcludedSchemes)->empty());
+}
« no previous file with comments | « chrome/browser/external_protocol/external_protocol_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698