| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 // Direct Preference Access for Component Extensions. | 250 // Direct Preference Access for Component Extensions. |
| 251 registry->RegisterFunction< | 251 registry->RegisterFunction< |
| 252 extensions::chromedirectsetting::GetDirectSettingFunction>(); | 252 extensions::chromedirectsetting::GetDirectSettingFunction>(); |
| 253 registry->RegisterFunction< | 253 registry->RegisterFunction< |
| 254 extensions::chromedirectsetting::SetDirectSettingFunction>(); | 254 extensions::chromedirectsetting::SetDirectSettingFunction>(); |
| 255 registry->RegisterFunction< | 255 registry->RegisterFunction< |
| 256 extensions::chromedirectsetting::ClearDirectSettingFunction>(); | 256 extensions::chromedirectsetting::ClearDirectSettingFunction>(); |
| 257 | 257 |
| 258 // Generated APIs from lower-level modules. | 258 // Generated APIs from lower-level modules. |
| 259 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); | 259 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); |
| 260 | 260 |
| 261 // Generated APIs from Chrome. | 261 // Generated APIs from Chrome. |
| 262 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); | 262 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); |
| 263 } | 263 } |
| 264 | 264 |
| 265 void ChromeExtensionsBrowserClient::RegisterMojoServices( | 265 void ChromeExtensionsBrowserClient::RegisterMojoServices( |
| 266 content::RenderFrameHost* render_frame_host, | 266 content::RenderFrameHost* render_frame_host, |
| 267 const Extension* extension) const { | 267 const Extension* extension) const { |
| 268 RegisterServicesForFrame(render_frame_host, extension); | 268 RegisterServicesForFrame(render_frame_host, extension); |
| 269 RegisterChromeServicesForFrame(render_frame_host, extension); | 269 RegisterChromeServicesForFrame(render_frame_host, extension); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 ->GetBrowserContext(); | 340 ->GetBrowserContext(); |
| 341 | 341 |
| 342 // Clean up context menus for the WebView. | 342 // Clean up context menus for the WebView. |
| 343 auto menu_manager = | 343 auto menu_manager = |
| 344 MenuManager::Get(Profile::FromBrowserContext(browser_context)); | 344 MenuManager::Get(Profile::FromBrowserContext(browser_context)); |
| 345 menu_manager->RemoveAllContextItems( | 345 menu_manager->RemoveAllContextItems( |
| 346 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); | 346 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); |
| 347 } | 347 } |
| 348 | 348 |
| 349 } // namespace extensions | 349 } // namespace extensions |
| OLD | NEW |