| 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/custom_handlers/protocol_handler_registry_factory.h" | 5 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "build/build_config.h" |
| 8 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 9 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 9 #include "chrome/browser/profiles/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
| 10 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 11 | 12 |
| 12 // static | 13 // static |
| 13 ProtocolHandlerRegistryFactory* ProtocolHandlerRegistryFactory::GetInstance() { | 14 ProtocolHandlerRegistryFactory* ProtocolHandlerRegistryFactory::GetInstance() { |
| 14 return base::Singleton<ProtocolHandlerRegistryFactory>::get(); | 15 return base::Singleton<ProtocolHandlerRegistryFactory>::get(); |
| 15 } | 16 } |
| 16 | 17 |
| 17 // static | 18 // static |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // If installing defaults, they must be installed prior calling | 61 // If installing defaults, they must be installed prior calling |
| 61 // InitProtocolSettings | 62 // InitProtocolSettings |
| 62 registry->InstallDefaultsForChromeOS(); | 63 registry->InstallDefaultsForChromeOS(); |
| 63 #endif | 64 #endif |
| 64 | 65 |
| 65 // Must be called as a part of the creation process. | 66 // Must be called as a part of the creation process. |
| 66 registry->InitProtocolSettings(); | 67 registry->InitProtocolSettings(); |
| 67 | 68 |
| 68 return registry; | 69 return registry; |
| 69 } | 70 } |
| OLD | NEW |