Index: chrome/browser/extensions/extension_function_dispatcher.cc |
=================================================================== |
--- chrome/browser/extensions/extension_function_dispatcher.cc (revision 25782) |
+++ chrome/browser/extensions/extension_function_dispatcher.cc (working copy) |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/extensions/extension_bookmarks_module.h" |
#include "chrome/browser/extensions/extension_bookmarks_module_constants.h" |
#include "chrome/browser/extensions/extension_function.h" |
+#include "chrome/browser/extensions/extension_i18n_api.h" |
#include "chrome/browser/extensions/extension_message_service.h" |
#include "chrome/browser/extensions/extension_page_actions_module.h" |
#include "chrome/browser/extensions/extension_page_actions_module_constants.h" |
@@ -69,6 +70,7 @@ |
// Register all functions here. |
namespace bookmarks = extension_bookmarks_module_constants; |
+ namespace i18n = extension_i18n_api_functions; |
namespace page_actions = extension_page_actions_module_constants; |
namespace tabs = extension_tabs_module_constants; |
namespace test = extension_test_api_functions; |
@@ -142,6 +144,10 @@ |
factories_[toolstrip::kCollapseFunction] = |
&NewExtensionFunction<ToolstripCollapseFunction>; |
+ // I18N. |
+ factories_[i18n::kGetAcceptLanguagesFunction] = |
+ &NewExtensionFunction<GetAcceptLanguagesFunction>; |
+ |
// Test. |
factories_[test::kPassFunction] = |
&NewExtensionFunction<ExtensionTestPassFunction>; |