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

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

Issue 2911263002: Rename network time policy to BrowserNetworkTimeQueriesEnabled (Closed)
Patch Set: disable policy on chromeos Created 3 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
« no previous file with comments | « no previous file | chrome/browser/policy/policy_browsertest.cc » ('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 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 base::Value::Type::BOOLEAN }, 666 base::Value::Type::BOOLEAN },
667 #endif 667 #endif
668 668
669 { key::kRoamingProfileSupportEnabled, 669 { key::kRoamingProfileSupportEnabled,
670 syncer::prefs::kEnableLocalSyncBackend, 670 syncer::prefs::kEnableLocalSyncBackend,
671 base::Value::Type::BOOLEAN }, 671 base::Value::Type::BOOLEAN },
672 { key::kRoamingProfileLocation, 672 { key::kRoamingProfileLocation,
673 syncer::prefs::kLocalSyncBackendDir, 673 syncer::prefs::kLocalSyncBackendDir,
674 base::Value::Type::STRING }, 674 base::Value::Type::STRING },
675 675
676 { key::kNetworkTimeQueriesEnabled, 676 { key::kBrowserNetworkTimeQueriesEnabled,
677 network_time::prefs::kNetworkTimeQueriesEnabled, 677 network_time::prefs::kNetworkTimeQueriesEnabled,
678 base::Value::Type::BOOLEAN }, 678 base::Value::Type::BOOLEAN },
679 }; 679 };
680 // clang-format on 680 // clang-format on
681 681
682 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler { 682 class ForceSafeSearchPolicyHandler : public TypeCheckingPolicyHandler {
683 public: 683 public:
684 ForceSafeSearchPolicyHandler() 684 ForceSafeSearchPolicyHandler()
685 : TypeCheckingPolicyHandler(key::kForceSafeSearch, 685 : TypeCheckingPolicyHandler(key::kForceSafeSearch,
686 base::Value::Type::BOOLEAN) {} 686 base::Value::Type::BOOLEAN) {}
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 #endif // defined(OS_CHROMEOS) 1042 #endif // defined(OS_CHROMEOS)
1043 1043
1044 #if BUILDFLAG(ENABLE_PLUGINS) 1044 #if BUILDFLAG(ENABLE_PLUGINS)
1045 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1045 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1046 #endif // BUILDFLAG(ENABLE_PLUGINS) 1046 #endif // BUILDFLAG(ENABLE_PLUGINS)
1047 1047
1048 return handlers; 1048 return handlers;
1049 } 1049 }
1050 1050
1051 } // namespace policy 1051 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698