| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 ChromeExtensionsBrowserClient::GetJavaScriptDialogManager() { | 191 ChromeExtensionsBrowserClient::GetJavaScriptDialogManager() { |
| 192 return GetJavaScriptDialogManagerInstance(); | 192 return GetJavaScriptDialogManagerInstance(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( | 195 ApiActivityMonitor* ChromeExtensionsBrowserClient::GetApiActivityMonitor( |
| 196 content::BrowserContext* context) { | 196 content::BrowserContext* context) { |
| 197 // The ActivityLog monitors and records function calls and events. | 197 // The ActivityLog monitors and records function calls and events. |
| 198 return ActivityLog::GetInstance(context); | 198 return ActivityLog::GetInstance(context); |
| 199 } | 199 } |
| 200 | 200 |
| 201 std::vector<BrowserContextKeyedServiceFactory*> | 201 ExtensionSystemProvider* |
| 202 ChromeExtensionsBrowserClient::GetExtensionSystemDependencies() { | 202 ChromeExtensionsBrowserClient::GetExtensionSystemFactory() { |
| 203 std::vector<BrowserContextKeyedServiceFactory*> dependencies; | 203 return ExtensionSystemFactory::GetInstance(); |
| 204 dependencies.push_back(ExtensionSystemSharedFactory::GetInstance()); | |
| 205 return dependencies; | |
| 206 } | |
| 207 | |
| 208 ExtensionSystem* ChromeExtensionsBrowserClient::CreateExtensionSystem( | |
| 209 content::BrowserContext* context) { | |
| 210 return new ExtensionSystemImpl(static_cast<Profile*>(context)); | |
| 211 } | 204 } |
| 212 | 205 |
| 213 } // namespace extensions | 206 } // namespace extensions |
| OLD | NEW |