| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return; | 338 return; |
| 339 } | 339 } |
| 340 UMA_HISTOGRAM_ENUMERATION(kHandleStateMetric, handle_state, | 340 UMA_HISTOGRAM_ENUMERATION(kHandleStateMetric, handle_state, |
| 341 HANDLE_STATE_LAST); | 341 HANDLE_STATE_LAST); |
| 342 } | 342 } |
| 343 | 343 |
| 344 // static | 344 // static |
| 345 void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) { | 345 void ExternalProtocolHandler::RegisterPrefs(PrefRegistrySimple* registry) { |
| 346 registry->RegisterDictionaryPref(prefs::kExcludedSchemes); | 346 registry->RegisterDictionaryPref(prefs::kExcludedSchemes); |
| 347 } | 347 } |
| 348 |
| 349 // static |
| 350 void ExternalProtocolHandler::ClearData(Profile* profile) { |
| 351 PrefService* prefs = profile->GetPrefs(); |
| 352 prefs->ClearPref(prefs::kExcludedSchemes); |
| 353 } |
| OLD | NEW |