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

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

Issue 174116: chrome.i18n API (accept languages part 1) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_i18n_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_i18n_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698