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

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

Issue 307993005: Enable the ManagedBookmarks policy on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
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"
11 #include "chrome/browser/net/proxy_policy_handler.h" 11 #include "chrome/browser/net/proxy_policy_handler.h"
12 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h"
12 #include "chrome/browser/profiles/incognito_mode_policy_handler.h" 13 #include "chrome/browser/profiles/incognito_mode_policy_handler.h"
13 #include "chrome/browser/search_engines/default_search_policy_handler.h" 14 #include "chrome/browser/search_engines/default_search_policy_handler.h"
14 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
15 #include "components/password_manager/core/common/password_manager_pref_names.h" 16 #include "components/password_manager/core/common/password_manager_pref_names.h"
16 #include "components/policy/core/browser/autofill_policy_handler.h" 17 #include "components/policy/core/browser/autofill_policy_handler.h"
17 #include "components/policy/core/browser/configuration_policy_handler.h" 18 #include "components/policy/core/browser/configuration_policy_handler.h"
18 #include "components/policy/core/browser/configuration_policy_handler_list.h" 19 #include "components/policy/core/browser/configuration_policy_handler_list.h"
19 #include "components/policy/core/browser/configuration_policy_handler_parameters .h" 20 #include "components/policy/core/browser/configuration_policy_handler_parameters .h"
20 #include "components/policy/core/browser/url_blacklist_policy_handler.h" 21 #include "components/policy/core/browser/url_blacklist_policy_handler.h"
21 #include "components/policy/core/common/policy_details.h" 22 #include "components/policy/core/common/policy_details.h"
(...skipping 17 matching lines...) Expand all
39 #endif 40 #endif
40 41
41 #if defined(OS_CHROMEOS) 42 #if defined(OS_CHROMEOS)
42 #include "ash/magnifier/magnifier_constants.h" 43 #include "ash/magnifier/magnifier_constants.h"
43 #include "chrome/browser/chromeos/login/users/user.h" 44 #include "chrome/browser/chromeos/login/users/user.h"
44 #include "chrome/browser/chromeos/login/users/user_manager.h" 45 #include "chrome/browser/chromeos/login/users/user_manager.h"
45 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h " 46 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h "
46 #include "chromeos/dbus/power_policy_controller.h" 47 #include "chromeos/dbus/power_policy_controller.h"
47 #endif 48 #endif
48 49
49 #if defined(OS_ANDROID) || defined(OS_IOS)
50 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h"
51 #endif
52
53 #if !defined(OS_ANDROID) && !defined(OS_IOS) 50 #if !defined(OS_ANDROID) && !defined(OS_IOS)
54 #include "chrome/browser/download/download_dir_policy_handler.h" 51 #include "chrome/browser/download/download_dir_policy_handler.h"
55 #endif 52 #endif
56 53
57 #if !defined(OS_MACOSX) && !defined(OS_IOS) 54 #if !defined(OS_MACOSX) && !defined(OS_IOS)
58 #include "apps/pref_names.h" 55 #include "apps/pref_names.h"
59 #endif 56 #endif
60 57
61 namespace policy { 58 namespace policy {
62 59
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 kSimplePolicyMap[i].value_type))); 515 kSimplePolicyMap[i].value_type)));
519 } 516 }
520 517
521 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 518 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
522 new AutofillPolicyHandler())); 519 new AutofillPolicyHandler()));
523 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 520 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
524 new DefaultSearchPolicyHandler())); 521 new DefaultSearchPolicyHandler()));
525 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 522 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
526 new IncognitoModePolicyHandler())); 523 new IncognitoModePolicyHandler()));
527 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 524 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
525 new ManagedBookmarksPolicyHandler(chrome_schema)));
526 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
528 new ProxyPolicyHandler())); 527 new ProxyPolicyHandler()));
529 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 528 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
530 new URLBlacklistPolicyHandler())); 529 new URLBlacklistPolicyHandler()));
531 530
532 #if !defined(OS_IOS) 531 #if !defined(OS_IOS)
533 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 532 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
534 new FileSelectionDialogsPolicyHandler())); 533 new FileSelectionDialogsPolicyHandler()));
535 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 534 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
536 new JavascriptPolicyHandler())); 535 new JavascriptPolicyHandler()));
537 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 536 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 new LegacyPoliciesDeprecatingPolicyHandler( 724 new LegacyPoliciesDeprecatingPolicyHandler(
726 screen_lock_legacy_policies.Pass(), 725 screen_lock_legacy_policies.Pass(),
727 make_scoped_ptr<SchemaValidatingPolicyHandler>( 726 make_scoped_ptr<SchemaValidatingPolicyHandler>(
728 new ScreenLockDelayPolicyHandler(chrome_schema))))); 727 new ScreenLockDelayPolicyHandler(chrome_schema)))));
729 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 728 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
730 new ExternalDataPolicyHandler(key::kUserAvatarImage))); 729 new ExternalDataPolicyHandler(key::kUserAvatarImage)));
731 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 730 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
732 new ExternalDataPolicyHandler(key::kWallpaperImage))); 731 new ExternalDataPolicyHandler(key::kWallpaperImage)));
733 #endif // defined(OS_CHROMEOS) 732 #endif // defined(OS_CHROMEOS)
734 733
735 #if defined(OS_ANDROID) || defined(OS_IOS)
736 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
737 new ManagedBookmarksPolicyHandler()));
738 #endif
739 return handlers.Pass(); 734 return handlers.Pass();
740 } 735 }
741 736
742 } // namespace policy 737 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/policy/managed_bookmarks_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698