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

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

Issue 2943763002: Add a new group policy to disable safe browsing for files downloaded from trusted sources. (Closed)
Patch Set: D'Ho! 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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 base::Value::Type::BOOLEAN }, 131 base::Value::Type::BOOLEAN },
132 { key::kPacHttpsUrlStrippingEnabled, 132 { key::kPacHttpsUrlStrippingEnabled,
133 prefs::kPacHttpsUrlStrippingEnabled, 133 prefs::kPacHttpsUrlStrippingEnabled,
134 base::Value::Type::BOOLEAN }, 134 base::Value::Type::BOOLEAN },
135 { key::kQuicAllowed, 135 { key::kQuicAllowed,
136 prefs::kQuicAllowed, 136 prefs::kQuicAllowed,
137 base::Value::Type::BOOLEAN }, 137 base::Value::Type::BOOLEAN },
138 { key::kSafeBrowsingEnabled, 138 { key::kSafeBrowsingEnabled,
139 prefs::kSafeBrowsingEnabled, 139 prefs::kSafeBrowsingEnabled,
140 base::Value::Type::BOOLEAN }, 140 base::Value::Type::BOOLEAN },
141 { key::kSafeBrowsingForTrustedSourcesEnabled,
142 prefs::kSafeBrowsingForTrustedSourcesEnabled,
143 base::Value::Type::BOOLEAN },
141 { key::kDownloadRestrictions, 144 { key::kDownloadRestrictions,
142 prefs::kDownloadRestrictions, 145 prefs::kDownloadRestrictions,
143 base::Value::Type::INTEGER }, 146 base::Value::Type::INTEGER },
144 { key::kForceGoogleSafeSearch, 147 { key::kForceGoogleSafeSearch,
145 prefs::kForceGoogleSafeSearch, 148 prefs::kForceGoogleSafeSearch,
146 base::Value::Type::BOOLEAN }, 149 base::Value::Type::BOOLEAN },
147 { key::kForceYouTubeRestrict, 150 { key::kForceYouTubeRestrict,
148 prefs::kForceYouTubeRestrict, 151 prefs::kForceYouTubeRestrict,
149 base::Value::Type::INTEGER}, 152 base::Value::Type::INTEGER},
150 { key::kPasswordManagerEnabled, 153 { key::kPasswordManagerEnabled,
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 #endif // defined(OS_CHROMEOS) 1047 #endif // defined(OS_CHROMEOS)
1045 1048
1046 #if BUILDFLAG(ENABLE_PLUGINS) 1049 #if BUILDFLAG(ENABLE_PLUGINS)
1047 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1050 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1048 #endif // BUILDFLAG(ENABLE_PLUGINS) 1051 #endif // BUILDFLAG(ENABLE_PLUGINS)
1049 1052
1050 return handlers; 1053 return handlers;
1051 } 1054 }
1052 1055
1053 } // namespace policy 1056 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698