Chromium Code Reviews| Index: chrome/browser/external_protocol/external_protocol_handler.cc |
| diff --git a/chrome/browser/external_protocol/external_protocol_handler.cc b/chrome/browser/external_protocol/external_protocol_handler.cc |
| index 29f98ed5cc60d7d2187b9138a1103399772be326..b9ce1eba4e090fb5b6f669fc7d3101aa98049730 100644 |
| --- a/chrome/browser/external_protocol/external_protocol_handler.cc |
| +++ b/chrome/browser/external_protocol/external_protocol_handler.cc |
| @@ -345,3 +345,11 @@ void ExternalProtocolHandler::RecordHandleStateMetrics(bool checkbox_selected, |
| void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) { |
| registry->RegisterDictionaryPref(prefs::kExcludedSchemes); |
| } |
| + |
| +// static |
| +void ExternalProtocolHandler::ClearData(Profile* profile) { |
| + PrefService* prefs = profile->GetPrefs(); |
| + if (prefs) { // Maybe NULL during testing. |
| + prefs->ClearPref(prefs::kExcludedSchemes); |
|
dominickn
2017/02/10 03:10:29
I don't think you need the if check here - do the
ramyasharma
2017/02/15 05:03:36
Thanks I had not tried it without the check
|
| + } |
| +} |