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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 309553011: Enable policy support for registering protocol handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Issue_116119_pre
Patch Set: After rebase Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 523 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
524 new DefaultSearchPolicyHandler())); 524 new DefaultSearchPolicyHandler()));
525 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 525 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
526 new IncognitoModePolicyHandler())); 526 new IncognitoModePolicyHandler()));
527 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 527 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
528 new ManagedBookmarksPolicyHandler(chrome_schema))); 528 new ManagedBookmarksPolicyHandler(chrome_schema)));
529 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 529 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
530 new ProxyPolicyHandler())); 530 new ProxyPolicyHandler()));
531 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 531 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
532 new URLBlacklistPolicyHandler())); 532 new URLBlacklistPolicyHandler()));
533 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
534 new SimpleSchemaValidatingPolicyHandler(
535 key::kRegisteredProtocolHandlers,
536 prefs::kPolicyRegisteredProtocolHandlers,
537 chrome_schema,
538 SCHEMA_STRICT,
539 true,
540 false)));
541 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
542 new SimpleSchemaValidatingPolicyHandler(
543 key::kIgnoredProtocolHandlers,
544 prefs::kPolicyIgnoredProtocolHandlers,
545 chrome_schema,
546 SCHEMA_STRICT,
547 true,
548 false)));
533 549
534 #if !defined(OS_IOS) 550 #if !defined(OS_IOS)
535 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 551 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
536 new FileSelectionDialogsPolicyHandler())); 552 new FileSelectionDialogsPolicyHandler()));
537 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 553 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
538 new JavascriptPolicyHandler())); 554 new JavascriptPolicyHandler()));
539 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 555 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
540 new RestoreOnStartupPolicyHandler())); 556 new RestoreOnStartupPolicyHandler()));
541 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 557 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
542 new browser_sync::SyncPolicyHandler())); 558 new browser_sync::SyncPolicyHandler()));
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 747 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
732 new ExternalDataPolicyHandler(key::kUserAvatarImage))); 748 new ExternalDataPolicyHandler(key::kUserAvatarImage)));
733 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 749 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
734 new ExternalDataPolicyHandler(key::kWallpaperImage))); 750 new ExternalDataPolicyHandler(key::kWallpaperImage)));
735 #endif // defined(OS_CHROMEOS) 751 #endif // defined(OS_CHROMEOS)
736 752
737 return handlers.Pass(); 753 return handlers.Pass();
738 } 754 }
739 755
740 } // namespace policy 756 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/policy/policy_test_cases.json » ('j') | chrome/test/data/policy/policy_test_cases.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698