| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/webui/web_ui_ios_controller_factory_registry.h" | 5 #include "ios/web/webui/web_ui_ios_controller_factory_registry.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 8 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| 9 #include "url/url_constants.h" | 11 #include "url/url_constants.h" |
| 10 | 12 |
| 11 namespace web { | 13 namespace web { |
| 12 | 14 |
| 13 base::LazyInstance<std::vector<WebUIIOSControllerFactory*> > g_factories = | 15 base::LazyInstance<std::vector<WebUIIOSControllerFactory*> > g_factories = |
| 14 LAZY_INSTANCE_INITIALIZER; | 16 LAZY_INSTANCE_INITIALIZER; |
| 15 | 17 |
| 16 void WebUIIOSControllerFactory::RegisterFactory( | 18 void WebUIIOSControllerFactory::RegisterFactory( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 return NULL; | 39 return NULL; |
| 38 } | 40 } |
| 39 | 41 |
| 40 WebUIIOSControllerFactoryRegistry::WebUIIOSControllerFactoryRegistry() { | 42 WebUIIOSControllerFactoryRegistry::WebUIIOSControllerFactoryRegistry() { |
| 41 } | 43 } |
| 42 | 44 |
| 43 WebUIIOSControllerFactoryRegistry::~WebUIIOSControllerFactoryRegistry() { | 45 WebUIIOSControllerFactoryRegistry::~WebUIIOSControllerFactoryRegistry() { |
| 44 } | 46 } |
| 45 | 47 |
| 46 } // namespace web | 48 } // namespace web |
| OLD | NEW |