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

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

Issue 12147004: Disable/enable echo for enterprise device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the missing SendResponse call to the async extension method. Created 7 years, 10 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/accessibility/accessibility_extension_api.h" 7 #include "chrome/browser/accessibility/accessibility_extension_api.h"
8 #include "chrome/browser/extensions/api/app/app_api.h" 8 #include "chrome/browser/extensions/api/app/app_api.h"
9 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage r_private_api.h" 9 #include "chrome/browser/extensions/api/bookmark_manager_private/bookmark_manage r_private_api.h"
10 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" 10 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 RegisterFunction<WallpaperSetCustomWallpaperFunction>(); 179 RegisterFunction<WallpaperSetCustomWallpaperFunction>();
180 RegisterFunction<WallpaperMinimizeInactiveWindowsFunction>(); 180 RegisterFunction<WallpaperMinimizeInactiveWindowsFunction>();
181 RegisterFunction<WallpaperRestoreMinimizedWindowsFunction>(); 181 RegisterFunction<WallpaperRestoreMinimizedWindowsFunction>();
182 RegisterFunction<WallpaperGetThumbnailFunction>(); 182 RegisterFunction<WallpaperGetThumbnailFunction>();
183 RegisterFunction<WallpaperSaveThumbnailFunction>(); 183 RegisterFunction<WallpaperSaveThumbnailFunction>();
184 RegisterFunction<WallpaperGetOfflineWallpaperListFunction>(); 184 RegisterFunction<WallpaperGetOfflineWallpaperListFunction>();
185 185
186 // Echo 186 // Echo
187 RegisterFunction<GetRegistrationCodeFunction>(); 187 RegisterFunction<GetRegistrationCodeFunction>();
188 RegisterFunction<GetOobeTimestampFunction>(); 188 RegisterFunction<GetOobeTimestampFunction>();
189 RegisterFunction<CheckAllowRedeemOffersFunction>();
189 190
190 // Terminal 191 // Terminal
191 RegisterFunction<OpenTerminalProcessFunction>(); 192 RegisterFunction<OpenTerminalProcessFunction>();
192 RegisterFunction<SendInputToTerminalProcessFunction>(); 193 RegisterFunction<SendInputToTerminalProcessFunction>();
193 RegisterFunction<CloseTerminalProcessFunction>(); 194 RegisterFunction<CloseTerminalProcessFunction>();
194 RegisterFunction<OnTerminalResizeFunction>(); 195 RegisterFunction<OnTerminalResizeFunction>();
195 #endif 196 #endif
196 197
197 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. 198 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS.
198 RegisterFunction< 199 RegisterFunction<
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 252
252 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry() 253 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry()
253 : factory_(0), histogram_value_(extensions::functions::UNKNOWN) { 254 : factory_(0), histogram_value_(extensions::functions::UNKNOWN) {
254 } 255 }
255 256
256 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry( 257 ExtensionFunctionRegistry::FactoryEntry::FactoryEntry(
257 ExtensionFunctionFactory factory, 258 ExtensionFunctionFactory factory,
258 extensions::functions::HistogramValue histogram_value) 259 extensions::functions::HistogramValue histogram_value)
259 : factory_(factory), histogram_value_(histogram_value) { 260 : factory_(factory), histogram_value_(histogram_value) {
260 } 261 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698