| 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_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "chrome/browser/prefs/pref_service.h" | 70 #include "chrome/browser/prefs/pref_service.h" |
| 71 #include "chrome/browser/profiles/profile.h" | 71 #include "chrome/browser/profiles/profile.h" |
| 72 #include "chrome/browser/profiles/profile_manager.h" | 72 #include "chrome/browser/profiles/profile_manager.h" |
| 73 #include "chrome/browser/search_engines/template_url_service.h" | 73 #include "chrome/browser/search_engines/template_url_service.h" |
| 74 #include "chrome/browser/search_engines/template_url_service_factory.h" | 74 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 75 #include "chrome/browser/themes/theme_service.h" | 75 #include "chrome/browser/themes/theme_service.h" |
| 76 #include "chrome/browser/themes/theme_service_factory.h" | 76 #include "chrome/browser/themes/theme_service_factory.h" |
| 77 #include "chrome/browser/ui/browser.h" | 77 #include "chrome/browser/ui/browser.h" |
| 78 #include "chrome/browser/ui/browser_finder.h" | 78 #include "chrome/browser/ui/browser_finder.h" |
| 79 #include "chrome/browser/ui/chrome_pages.h" | 79 #include "chrome/browser/ui/chrome_pages.h" |
| 80 #include "chrome/browser/ui/global_error_service.h" | 80 #include "chrome/browser/ui/global_error/global_error_service.h" |
| 81 #include "chrome/browser/ui/global_error_service_factory.h" | 81 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 82 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 82 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 83 #include "chrome/browser/ui/webui/favicon_source.h" | 83 #include "chrome/browser/ui/webui/favicon_source.h" |
| 84 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h" | 84 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h" |
| 85 #include "chrome/common/child_process_logging.h" | 85 #include "chrome/common/child_process_logging.h" |
| 86 #include "chrome/common/chrome_notification_types.h" | 86 #include "chrome/common/chrome_notification_types.h" |
| 87 #include "chrome/common/chrome_paths.h" | 87 #include "chrome/common/chrome_paths.h" |
| 88 #include "chrome/common/chrome_switches.h" | 88 #include "chrome/common/chrome_switches.h" |
| 89 #include "chrome/common/chrome_version_info.h" | 89 #include "chrome/common/chrome_version_info.h" |
| 90 #include "chrome/common/extensions/extension.h" | 90 #include "chrome/common/extensions/extension.h" |
| 91 #include "chrome/common/extensions/extension_error_utils.h" | 91 #include "chrome/common/extensions/extension_error_utils.h" |
| (...skipping 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 | 2560 |
| 2561 // To coexist with certain unit tests that don't have a work-thread message | 2561 // To coexist with certain unit tests that don't have a work-thread message |
| 2562 // loop available at ExtensionService shutdown, we lazy-initialize this | 2562 // loop available at ExtensionService shutdown, we lazy-initialize this |
| 2563 // object so that those cases neither create nor destroy an | 2563 // object so that those cases neither create nor destroy an |
| 2564 // APIResourceController. | 2564 // APIResourceController. |
| 2565 if (!api_resource_controller_.get()) { | 2565 if (!api_resource_controller_.get()) { |
| 2566 api_resource_controller_.reset(new extensions::APIResourceController()); | 2566 api_resource_controller_.reset(new extensions::APIResourceController()); |
| 2567 } | 2567 } |
| 2568 return api_resource_controller_.get(); | 2568 return api_resource_controller_.get(); |
| 2569 } | 2569 } |
| OLD | NEW |