Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/browser/custom_handlers/protocol_handler_registry_factory.cc

Issue 148083014: ExtensionSystem cleanup part 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/install_limiter_factory.cc ('k') | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698