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

Side by Side Diff: chrome/browser/extensions/extension_function_registry.cc

Issue 23452008: Remove experimental.rlz extension api completely (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_function_registry.h" 5 #include "chrome/browser/extensions/extension_function_registry.h"
6 6
7 #include "chrome/browser/extensions/api/identity/experimental_identity_api.h" 7 #include "chrome/browser/extensions/api/identity/experimental_identity_api.h"
8 #include "chrome/browser/extensions/api/preference/chrome_direct_setting.h" 8 #include "chrome/browser/extensions/api/preference/chrome_direct_setting.h"
9 #include "chrome/browser/extensions/api/preference/preference_api.h" 9 #include "chrome/browser/extensions/api/preference/preference_api.h"
10 #include "chrome/browser/extensions/api/runtime/runtime_api.h" 10 #include "chrome/browser/extensions/api/runtime/runtime_api.h"
11 #include "chrome/browser/extensions/api/web_request/web_request_api.h" 11 #include "chrome/browser/extensions/api/web_request/web_request_api.h"
12 #include "chrome/browser/rlz/rlz_extension_api.h"
13 #include "chrome/common/extensions/api/generated_api.h" 12 #include "chrome/common/extensions/api/generated_api.h"
14 13
15 // static 14 // static
16 ExtensionFunctionRegistry* ExtensionFunctionRegistry::GetInstance() { 15 ExtensionFunctionRegistry* ExtensionFunctionRegistry::GetInstance() {
17 return Singleton<ExtensionFunctionRegistry>::get(); 16 return Singleton<ExtensionFunctionRegistry>::get();
18 } 17 }
19 18
20 ExtensionFunctionRegistry::ExtensionFunctionRegistry() { 19 ExtensionFunctionRegistry::ExtensionFunctionRegistry() {
21 ResetFunctions(); 20 ResetFunctions();
22 } 21 }
23 22
24 ExtensionFunctionRegistry::~ExtensionFunctionRegistry() { 23 ExtensionFunctionRegistry::~ExtensionFunctionRegistry() {
25 } 24 }
26 25
27 void ExtensionFunctionRegistry::ResetFunctions() { 26 void ExtensionFunctionRegistry::ResetFunctions() {
28 #if defined(ENABLE_EXTENSIONS) 27 #if defined(ENABLE_EXTENSIONS)
29 28
30 // Register all functions here. 29 // Register all functions here.
31 30
32 // RLZ (not supported on ChromeOS yet).
33 #if defined(ENABLE_RLZ) && !defined(OS_CHROMEOS)
34 RegisterFunction<RlzRecordProductEventFunction>();
35 RegisterFunction<RlzGetAccessPointRlzFunction>();
36 RegisterFunction<RlzSendFinancialPingFunction>();
37 RegisterFunction<RlzClearProductStateFunction>();
38 #endif
39
40 // WebRequest. 31 // WebRequest.
41 RegisterFunction<WebRequestAddEventListener>(); 32 RegisterFunction<WebRequestAddEventListener>();
42 RegisterFunction<WebRequestEventHandled>(); 33 RegisterFunction<WebRequestEventHandled>();
43 34
44 // Preferences. 35 // Preferences.
45 RegisterFunction<extensions::GetPreferenceFunction>(); 36 RegisterFunction<extensions::GetPreferenceFunction>();
46 RegisterFunction<extensions::SetPreferenceFunction>(); 37 RegisterFunction<extensions::SetPreferenceFunction>();
47 RegisterFunction<extensions::ClearPreferenceFunction>(); 38 RegisterFunction<extensions::ClearPreferenceFunction>();
48 39
49 // Direct Preference Access for Component Extensions. 40 // Direct Preference Access for Component Extensions.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 91
101 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry() 92 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry()
102 : factory_(0), histogram_value_(extensions::functions::UNKNOWN) { 93 : factory_(0), histogram_value_(extensions::functions::UNKNOWN) {
103 } 94 }
104 95
105 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry( 96 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry(
106 ExtensionFunctionFactory factory, 97 ExtensionFunctionFactory factory,
107 extensions::functions::HistogramValue histogram_value) 98 extensions::functions::HistogramValue histogram_value)
108 : factory_(factory), histogram_value_(histogram_value) { 99 : factory_(factory), histogram_value_(histogram_value) {
109 } 100 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | chrome/browser/rlz/rlz_extension_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698