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/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/version.h" | 9 #include "base/version.h" |
10 #include "chrome/browser/app_mode/app_mode_utils.h" | 10 #include "chrome/browser/app_mode/app_mode_utils.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 ComponentExtensionResourceManager* | 273 ComponentExtensionResourceManager* |
274 ChromeExtensionsBrowserClient::GetComponentExtensionResourceManager() { | 274 ChromeExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
275 if (!resource_manager_) | 275 if (!resource_manager_) |
276 resource_manager_.reset(new ChromeComponentExtensionResourceManager()); | 276 resource_manager_.reset(new ChromeComponentExtensionResourceManager()); |
277 return resource_manager_.get(); | 277 return resource_manager_.get(); |
278 } | 278 } |
279 | 279 |
280 scoped_ptr<extensions::RuntimeAPIDelegate> | 280 scoped_ptr<extensions::RuntimeAPIDelegate> |
281 ChromeExtensionsBrowserClient::CreateRuntimeAPIDelegate( | 281 ChromeExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
282 content::BrowserContext* context) const { | 282 content::BrowserContext* context) const { |
| 283 #if defined(ENABLE_EXTENSIONS) |
283 return scoped_ptr<extensions::RuntimeAPIDelegate>( | 284 return scoped_ptr<extensions::RuntimeAPIDelegate>( |
284 new ChromeRuntimeAPIDelegate(context)); | 285 new ChromeRuntimeAPIDelegate(context)); |
| 286 #else |
| 287 return scoped_ptr<extensions::RuntimeAPIDelegate>(); |
| 288 #endif |
285 } | 289 } |
286 | 290 |
287 } // namespace extensions | 291 } // namespace extensions |
OLD | NEW |