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 "chrome/browser/custom_handlers/protocol_handler_registry.h" | 8 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
9 #include "chrome/browser/extensions/extension_system_factory.h" | |
10 #include "chrome/browser/profiles/incognito_helpers.h" | 9 #include "chrome/browser/profiles/incognito_helpers.h" |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 11 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
13 | 12 |
14 // static | 13 // static |
15 ProtocolHandlerRegistryFactory* ProtocolHandlerRegistryFactory::GetInstance() { | 14 ProtocolHandlerRegistryFactory* ProtocolHandlerRegistryFactory::GetInstance() { |
16 return Singleton<ProtocolHandlerRegistryFactory>::get(); | 15 return Singleton<ProtocolHandlerRegistryFactory>::get(); |
17 } | 16 } |
18 | 17 |
19 // static | 18 // static |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // If installing defaults, they must be installed prior calling | 62 // If installing defaults, they must be installed prior calling |
64 // InitProtocolSettings | 63 // InitProtocolSettings |
65 registry->InstallDefaultsForChromeOS(); | 64 registry->InstallDefaultsForChromeOS(); |
66 #endif | 65 #endif |
67 | 66 |
68 // Must be called as a part of the creation process. | 67 // Must be called as a part of the creation process. |
69 registry->InitProtocolSettings(); | 68 registry->InitProtocolSettings(); |
70 | 69 |
71 return registry; | 70 return registry; |
72 } | 71 } |
OLD | NEW |