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/extensions/extension_web_ui_override_registrar.h" | 5 #include "chrome/browser/extensions/extension_web_ui_override_registrar.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/extensions/extension_web_ui.h" | 9 #include "chrome/browser/extensions/extension_web_ui.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 static base::LazyInstance< | 45 static base::LazyInstance< |
46 ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar> > | 46 ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar> > |
47 g_factory = LAZY_INSTANCE_INITIALIZER; | 47 g_factory = LAZY_INSTANCE_INITIALIZER; |
48 | 48 |
49 // static | 49 // static |
50 ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar>* | 50 ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar>* |
51 ExtensionWebUIOverrideRegistrar::GetFactoryInstance() { | 51 ExtensionWebUIOverrideRegistrar::GetFactoryInstance() { |
52 return &g_factory.Get(); | 52 return g_factory.Pointer(); |
53 } | 53 } |
54 | 54 |
55 } // namespace extensions | 55 } // namespace extensions |
OLD | NEW |