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

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

Issue 10510006: Add ManagedModePolicyProvider and extension API to get and set policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_managed_mode_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/bookmarks/bookmark_extension_api.h" 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h"
9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h"
10 #include "chrome/browser/download/download_extension_api.h" 10 #include "chrome/browser/download/download_extension_api.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 RegisterFunction<SetCursorPositionFunction>(); 288 RegisterFunction<SetCursorPositionFunction>();
289 RegisterFunction<SetMenuItemsFunction>(); 289 RegisterFunction<SetMenuItemsFunction>();
290 RegisterFunction<UpdateMenuItemsFunction>(); 290 RegisterFunction<UpdateMenuItemsFunction>();
291 291
292 RegisterFunction<InputEventHandled>(); 292 RegisterFunction<InputEventHandled>();
293 #endif 293 #endif
294 294
295 // Managed mode. 295 // Managed mode.
296 RegisterFunction<GetManagedModeFunction>(); 296 RegisterFunction<GetManagedModeFunction>();
297 RegisterFunction<EnterManagedModeFunction>(); 297 RegisterFunction<EnterManagedModeFunction>();
298 RegisterFunction<GetPolicyFunction>();
299 RegisterFunction<SetPolicyFunction>();
298 300
299 // Management. 301 // Management.
300 RegisterFunction<GetAllExtensionsFunction>(); 302 RegisterFunction<GetAllExtensionsFunction>();
301 RegisterFunction<GetExtensionByIdFunction>(); 303 RegisterFunction<GetExtensionByIdFunction>();
302 RegisterFunction<GetPermissionWarningsByIdFunction>(); 304 RegisterFunction<GetPermissionWarningsByIdFunction>();
303 RegisterFunction<GetPermissionWarningsByManifestFunction>(); 305 RegisterFunction<GetPermissionWarningsByManifestFunction>();
304 RegisterFunction<LaunchAppFunction>(); 306 RegisterFunction<LaunchAppFunction>();
305 RegisterFunction<SetEnabledFunction>(); 307 RegisterFunction<SetEnabledFunction>();
306 RegisterFunction<UninstallFunction>(); 308 RegisterFunction<UninstallFunction>();
307 309
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 541 }
540 542
541 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( 543 ExtensionFunction* ExtensionFunctionRegistry::NewFunction(
542 const std::string& name) { 544 const std::string& name) {
543 FactoryMap::iterator iter = factories_.find(name); 545 FactoryMap::iterator iter = factories_.find(name);
544 DCHECK(iter != factories_.end()); 546 DCHECK(iter != factories_.end());
545 ExtensionFunction* function = iter->second(); 547 ExtensionFunction* function = iter->second();
546 function->set_name(name); 548 function->set_name(name);
547 return function; 549 return function;
548 } 550 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_managed_mode_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698