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

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: 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 520 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
521 new DefaultSearchPolicyHandler())); 521 new DefaultSearchPolicyHandler()));
522 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 522 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
523 new IncognitoModePolicyHandler())); 523 new IncognitoModePolicyHandler()));
524 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 524 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
525 new ManagedBookmarksPolicyHandler(chrome_schema))); 525 new ManagedBookmarksPolicyHandler(chrome_schema)));
526 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 526 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
527 new ProxyPolicyHandler())); 527 new ProxyPolicyHandler()));
528 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 528 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
529 new URLBlacklistPolicyHandler())); 529 new URLBlacklistPolicyHandler()));
530 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
531 new SimpleSchemaValidatingPolicyHandler(
532 key::kRegisteredProtocolHandlers,
533 prefs::kPolicyRegisteredProtocolHandlers,
534 chrome_schema,
535 SCHEMA_STRICT,
536 true,
537 false)));
538 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
539 new SimpleSchemaValidatingPolicyHandler(
540 key::kIgnoredProtocolHandlers,
541 prefs::kPolicyIgnoredProtocolHandlers,
542 chrome_schema,
543 SCHEMA_STRICT,
544 true,
545 false)));
530 546
531 #if !defined(OS_IOS) 547 #if !defined(OS_IOS)
532 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 548 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
533 new FileSelectionDialogsPolicyHandler())); 549 new FileSelectionDialogsPolicyHandler()));
534 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 550 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
535 new JavascriptPolicyHandler())); 551 new JavascriptPolicyHandler()));
536 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 552 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
537 new RestoreOnStartupPolicyHandler())); 553 new RestoreOnStartupPolicyHandler()));
538 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 554 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
539 new browser_sync::SyncPolicyHandler())); 555 new browser_sync::SyncPolicyHandler()));
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 744 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
729 new ExternalDataPolicyHandler(key::kUserAvatarImage))); 745 new ExternalDataPolicyHandler(key::kUserAvatarImage)));
730 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 746 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
731 new ExternalDataPolicyHandler(key::kWallpaperImage))); 747 new ExternalDataPolicyHandler(key::kWallpaperImage)));
732 #endif // defined(OS_CHROMEOS) 748 #endif // defined(OS_CHROMEOS)
733 749
734 return handlers.Pass(); 750 return handlers.Pass();
735 } 751 }
736 752
737 } // namespace policy 753 } // 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