summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_dispatcher.cc
diff options
context:
space:
mode:
authorrogerta@google.com <rogerta@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 15:21:50 +0000
committerrogerta@google.com <rogerta@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 15:21:50 +0000
commit549c4e3cbf7da1c6d65b865855d055c4dc02e979 (patch)
tree7c66144efc1e53891245507701830f3b88e24e37 /chrome/browser/extensions/extension_function_dispatcher.cc
parent8cc9dd62ea7a7d60ce5486fbd62baf9266fa0f15 (diff)
downloadchromium_src-549c4e3cbf7da1c6d65b865855d055c4dc02e979.zip
chromium_src-549c4e3cbf7da1c6d65b865855d055c4dc02e979.tar.gz
chromium_src-549c4e3cbf7da1c6d65b865855d055c4dc02e979.tar.bz2
Add support for RLZ chrome extension api.
BUG=NONE TEST=See unit tests as part of this CL. Review URL: http://codereview.chromium.org/2804010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.cc')
-rw-r--r--chrome/browser/extensions/extension_function_dispatcher.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 31d6984..9015a68 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -8,7 +8,7 @@
#include "base/singleton.h"
#include "base/ref_counted.h"
#include "base/values.h"
-#include "chrome/browser/browser.h"
+#include "build/build_config.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
@@ -36,6 +36,7 @@
#include "chrome/browser/extensions/extension_popup_api.h"
#include "chrome/browser/extensions/extension_process_manager.h"
#include "chrome/browser/extensions/extension_processes_api.h"
+#include "chrome/browser/extensions/extension_rlz_module.h"
#include "chrome/browser/extensions/extension_tabs_module.h"
#include "chrome/browser/extensions/extension_tabs_module_constants.h"
#include "chrome/browser/extensions/extension_test_api.h"
@@ -199,6 +200,13 @@ void FactoryRegistry::ResetFunctions() {
RegisterFunction<MetricsRecordMediumTimeFunction>();
RegisterFunction<MetricsRecordLongTimeFunction>();
+ // RLZ.
+#if defined(OS_WIN)
+ RegisterFunction<RlzRecordProductEventFunction>();
+ RegisterFunction<RlzGetAccessPointRlzFunction>();
+ RegisterFunction<RlzClearProductStateFunction>();
+#endif
+
// Cookies.
RegisterFunction<GetCookieFunction>();
RegisterFunction<GetAllCookiesFunction>();