| 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());
|
| +}
|
|
|