| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/custom_handlers/protocol_handler_registry.h" | 5 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg
ate.h" | 8 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg
ate.h" |
| 9 #include "chrome/browser/net/chrome_url_request_context.h" | 9 #include "chrome/browser/net/chrome_url_request_context.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ProtocolHandler* handler) { | 120 ProtocolHandler* handler) { |
| 121 RegisterProtocolHandler(handler); | 121 RegisterProtocolHandler(handler); |
| 122 Save(); | 122 Save(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void ProtocolHandlerRegistry::OnDenyRegisterProtocolHandler( | 125 void ProtocolHandlerRegistry::OnDenyRegisterProtocolHandler( |
| 126 ProtocolHandler* handler) { | 126 ProtocolHandler* handler) { |
| 127 } | 127 } |
| 128 | 128 |
| 129 void ProtocolHandlerRegistry::RegisterPrefs(PrefService* prefService) { | 129 void ProtocolHandlerRegistry::RegisterPrefs(PrefService* prefService) { |
| 130 prefService->RegisterListPref(prefs::kRegisteredProtocolHandlers); | 130 prefService->RegisterListPref(prefs::kRegisteredProtocolHandlers, |
| 131 false /* don't sync pref */); |
| 131 } | 132 } |
| OLD | NEW |