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

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

Issue 2902603002: Add enterprise policy for network time service (Closed)
Patch Set: shorten caption Created 3 years, 7 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 <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 15 matching lines...) Expand all
26 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h" 26 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h"
27 #include "chrome/browser/supervised_user/supervised_user_creation_policy_handler .h" 27 #include "chrome/browser/supervised_user/supervised_user_creation_policy_handler .h"
28 #include "chrome/common/chrome_switches.h" 28 #include "chrome/common/chrome_switches.h"
29 #include "chrome/common/features.h" 29 #include "chrome/common/features.h"
30 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
31 #include "components/bookmarks/common/bookmark_pref_names.h" 31 #include "components/bookmarks/common/bookmark_pref_names.h"
32 #include "components/browsing_data/core/pref_names.h" 32 #include "components/browsing_data/core/pref_names.h"
33 #include "components/certificate_transparency/pref_names.h" 33 #include "components/certificate_transparency/pref_names.h"
34 #include "components/content_settings/core/common/pref_names.h" 34 #include "components/content_settings/core/common/pref_names.h"
35 #include "components/metrics/metrics_pref_names.h" 35 #include "components/metrics/metrics_pref_names.h"
36 #include "components/network_time/network_time_pref_names.h"
36 #include "components/ntp_snippets/pref_names.h" 37 #include "components/ntp_snippets/pref_names.h"
37 #include "components/password_manager/core/common/password_manager_pref_names.h" 38 #include "components/password_manager/core/common/password_manager_pref_names.h"
38 #include "components/policy/core/browser/autofill_policy_handler.h" 39 #include "components/policy/core/browser/autofill_policy_handler.h"
39 #include "components/policy/core/browser/configuration_policy_handler.h" 40 #include "components/policy/core/browser/configuration_policy_handler.h"
40 #include "components/policy/core/browser/configuration_policy_handler_list.h" 41 #include "components/policy/core/browser/configuration_policy_handler_list.h"
41 #include "components/policy/core/browser/configuration_policy_handler_parameters .h" 42 #include "components/policy/core/browser/configuration_policy_handler_parameters .h"
42 #include "components/policy/core/browser/proxy_policy_handler.h" 43 #include "components/policy/core/browser/proxy_policy_handler.h"
43 #include "components/policy/core/browser/url_blacklist_policy_handler.h" 44 #include "components/policy/core/browser/url_blacklist_policy_handler.h"
44 #include "components/policy/core/common/policy_details.h" 45 #include "components/policy/core/common/policy_details.h"
45 #include "components/policy/core/common/policy_map.h" 46 #include "components/policy/core/common/policy_map.h"
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 prefs::kPinUnlockWeakPinsAllowed, 665 prefs::kPinUnlockWeakPinsAllowed,
665 base::Value::Type::BOOLEAN }, 666 base::Value::Type::BOOLEAN },
666 #endif 667 #endif
667 668
668 { key::kRoamingProfileSupportEnabled, 669 { key::kRoamingProfileSupportEnabled,
669 syncer::prefs::kEnableLocalSyncBackend, 670 syncer::prefs::kEnableLocalSyncBackend,
670 base::Value::Type::BOOLEAN }, 671 base::Value::Type::BOOLEAN },
671 { key::kRoamingProfileLocation, 672 { key::kRoamingProfileLocation,
672 syncer::prefs::kLocalSyncBackendDir, 673 syncer::prefs::kLocalSyncBackendDir,
673 base::Value::Type::STRING }, 674 base::Value::Type::STRING },
675
676 { key::kNetworkTimeQueriesEnabled,
677 network_time::prefs::kNetworkTimeQueriesEnabled,
678 base::Value::Type::BOOLEAN },
674 }; 679 };
675 // clang-format on 680 // clang-format on
676 681
677 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 682 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
678 public: 683 public:
679 ForceSafeSearchPolicyHandler() 684 ForceSafeSearchPolicyHandler()
680 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 685 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
681 base::Value::Type::BOOLEAN) {} 686 base::Value::Type::BOOLEAN) {}
682 ~ForceSafeSearchPolicyHandler() override {} 687 ~ForceSafeSearchPolicyHandler() override {}
683 688
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 #endif // defined(OS_CHROMEOS) 1042 #endif // defined(OS_CHROMEOS)
1038 1043
1039 #if BUILDFLAG(ENABLE_PLUGINS) 1044 #if BUILDFLAG(ENABLE_PLUGINS)
1040 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1045 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1041 #endif // BUILDFLAG(ENABLE_PLUGINS) 1046 #endif // BUILDFLAG(ENABLE_PLUGINS)
1042 1047
1043 return handlers; 1048 return handlers;
1044 } 1049 }
1045 1050
1046 } // namespace policy 1051 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/policy_browsertest.cc » ('j') | components/policy/resources/policy_templates.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698