Index: chrome/browser/extensions/extension_function_dispatcher.cc |
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc |
index 15fa40e2c6c159ccdb9ba0184c890024e1e1df8b..c9a07a47e0f7e9c12239162125a29662cb3618ff 100644 |
--- a/chrome/browser/extensions/extension_function_dispatcher.cc |
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc |
@@ -21,6 +21,7 @@ |
#include "chrome/browser/extensions/extension_context_menu_api.h" |
#include "chrome/browser/extensions/extension_cookies_api.h" |
#include "chrome/browser/extensions/extension_debugger_api.h" |
+#include "chrome/browser/extensions/extension_downloads.h" |
#include "chrome/browser/extensions/extension_function.h" |
#include "chrome/browser/extensions/extension_history_api.h" |
#include "chrome/browser/extensions/extension_i18n_api.h" |
@@ -378,6 +379,18 @@ void FactoryRegistry::ResetFunctions() { |
// Experimental App API. |
RegisterFunction<AppNotifyFunction>(); |
RegisterFunction<AppClearAllNotificationsFunction>(); |
+ |
+ // Downloads |
+ RegisterFunction<DownloadsDownloadFunction>(); |
+ RegisterFunction<DownloadsSearchFunction>(); |
+ RegisterFunction<DownloadsPauseFunction>(); |
+ RegisterFunction<DownloadsResumeFunction>(); |
+ RegisterFunction<DownloadsCancelFunction>(); |
+ RegisterFunction<DownloadsEraseFunction>(); |
+ RegisterFunction<DownloadsSetDestinationFunction>(); |
+ RegisterFunction<DownloadsAcceptDangerFunction>(); |
+ RegisterFunction<DownloadsShowFunction>(); |
+ RegisterFunction<DownloadsDragFunction>(); |
} |
void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |