| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chrome_extensions_browser_client.h" | 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/version.h" | 8 #include "base/version.h" |
| 9 #include "chrome/browser/app_mode/app_mode_utils.h" | 9 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 26 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/chrome_version_info.h" | 28 #include "chrome/common/chrome_version_info.h" |
| 29 #include "chrome/common/extensions/api/generated_api.h" | 29 #include "chrome/common/extensions/api/generated_api.h" |
| 30 #include "chrome/common/extensions/features/feature_channel.h" | 30 #include "chrome/common/extensions/features/feature_channel.h" |
| 31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 32 #include "extensions/browser/extension_function_registry.h" | 32 #include "extensions/browser/extension_function_registry.h" |
| 33 #include "extensions/browser/extension_prefs.h" | 33 #include "extensions/browser/extension_prefs.h" |
| 34 #include "extensions/browser/extension_system.h" | 34 #include "extensions/browser/extension_system.h" |
| 35 #include "extensions/browser/pref_names.h" | 35 #include "extensions/browser/pref_names.h" |
| 36 #include "extensions/common/api/generated_api.h" |
| 36 | 37 |
| 37 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
| 38 #include "chromeos/chromeos_switches.h" | 39 #include "chromeos/chromeos_switches.h" |
| 39 #endif | 40 #endif |
| 40 | 41 |
| 41 namespace extensions { | 42 namespace extensions { |
| 42 | 43 |
| 43 ChromeExtensionsBrowserClient::ChromeExtensionsBrowserClient() | 44 ChromeExtensionsBrowserClient::ChromeExtensionsBrowserClient() |
| 44 : api_client_(new ChromeExtensionsAPIClient) { | 45 : api_client_(new ChromeExtensionsAPIClient) { |
| 45 // Only set if it hasn't already been set (e.g. by a test). | 46 // Only set if it hasn't already been set (e.g. by a test). |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 extensions::chromedirectsetting::ClearDirectSettingFunction>(); | 237 extensions::chromedirectsetting::ClearDirectSettingFunction>(); |
| 237 | 238 |
| 238 // Runtime. | 239 // Runtime. |
| 239 registry->RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); | 240 registry->RegisterFunction<extensions::RuntimeGetBackgroundPageFunction>(); |
| 240 registry->RegisterFunction<extensions::RuntimeSetUninstallURLFunction>(); | 241 registry->RegisterFunction<extensions::RuntimeSetUninstallURLFunction>(); |
| 241 registry->RegisterFunction<extensions::RuntimeReloadFunction>(); | 242 registry->RegisterFunction<extensions::RuntimeReloadFunction>(); |
| 242 registry->RegisterFunction<extensions::RuntimeRequestUpdateCheckFunction>(); | 243 registry->RegisterFunction<extensions::RuntimeRequestUpdateCheckFunction>(); |
| 243 registry->RegisterFunction<extensions::RuntimeRestartFunction>(); | 244 registry->RegisterFunction<extensions::RuntimeRestartFunction>(); |
| 244 | 245 |
| 245 // Generated APIs. | 246 // Generated APIs. |
| 247 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); |
| 246 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); | 248 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); |
| 247 #endif | 249 #endif |
| 248 } | 250 } |
| 249 | 251 |
| 250 } // namespace extensions | 252 } // namespace extensions |
| OLD | NEW |