Index: chrome/browser/extensions/chrome_extensions_browser_client.cc |
diff --git a/chrome/browser/extensions/chrome_extensions_browser_client.cc b/chrome/browser/extensions/chrome_extensions_browser_client.cc |
index dc7cfafa47ba2745b7c46a223a1c061baf98753a..3f21436a6b21df6001592045a8de1d8207c4dfe1 100644 |
--- a/chrome/browser/extensions/chrome_extensions_browser_client.cc |
+++ b/chrome/browser/extensions/chrome_extensions_browser_client.cc |
@@ -280,8 +280,12 @@ ChromeExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
scoped_ptr<extensions::RuntimeAPIDelegate> |
ChromeExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
content::BrowserContext* context) const { |
+#if defined(ENABLE_EXTENSIONS) |
return scoped_ptr<extensions::RuntimeAPIDelegate>( |
new ChromeRuntimeAPIDelegate(context)); |
+#else |
+ return scoped_ptr<extensions::RuntimeAPIDelegate>(); |
+#endif |
} |
} // namespace extensions |