Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: chrome/browser/extensions/extension_function_registry.cc

Issue 10031002: Allow extension APIs to be compiled out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unneeded resources Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_function_registry.cc
diff --git a/chrome/browser/extensions/extension_function_registry.cc b/chrome/browser/extensions/extension_function_registry.cc
index dc84a932bd5eb0e75da95475c0f15402b2fbfaf0..cd06b7bef9ce5ae43630c7b706f46f4973ea5a9e 100644
--- a/chrome/browser/extensions/extension_function_registry.cc
+++ b/chrome/browser/extensions/extension_function_registry.cc
@@ -84,6 +84,8 @@ ExtensionFunctionRegistry::~ExtensionFunctionRegistry() {
}
void ExtensionFunctionRegistry::ResetFunctions() {
+#if defined(ENABLE_EXTENSIONS)
+
// Register all functions here.
// Alarms
@@ -507,6 +509,7 @@ void ExtensionFunctionRegistry::ResetFunctions() {
// Generated APIs
extensions::api::GeneratedFunctionRegistry::RegisterAll(this);
+#endif // defined(ENABLE_EXTENSIONS)
}
void ExtensionFunctionRegistry::GetAllNames(std::vector<std::string>* names) {

Powered by Google App Engine
This is Rietveld 408576698