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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Test compile fix Created 3 years, 10 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 base::Value::Type::BOOLEAN }, 129 base::Value::Type::BOOLEAN },
130 { key::kPacHttpsUrlStrippingEnabled, 130 { key::kPacHttpsUrlStrippingEnabled,
131 prefs::kPacHttpsUrlStrippingEnabled, 131 prefs::kPacHttpsUrlStrippingEnabled,
132 base::Value::Type::BOOLEAN }, 132 base::Value::Type::BOOLEAN },
133 { key::kQuicAllowed, 133 { key::kQuicAllowed,
134 prefs::kQuicAllowed, 134 prefs::kQuicAllowed,
135 base::Value::Type::BOOLEAN }, 135 base::Value::Type::BOOLEAN },
136 { key::kSafeBrowsingEnabled, 136 { key::kSafeBrowsingEnabled,
137 prefs::kSafeBrowsingEnabled, 137 prefs::kSafeBrowsingEnabled,
138 base::Value::Type::BOOLEAN }, 138 base::Value::Type::BOOLEAN },
139 { key::kDownloadRestrictions,
140 prefs::kDownloadRestrictions,
141 base::Value::Type::INTEGER },
139 { key::kForceGoogleSafeSearch, 142 { key::kForceGoogleSafeSearch,
140 prefs::kForceGoogleSafeSearch, 143 prefs::kForceGoogleSafeSearch,
141 base::Value::Type::BOOLEAN }, 144 base::Value::Type::BOOLEAN },
142 { key::kForceYouTubeRestrict, 145 { key::kForceYouTubeRestrict,
143 prefs::kForceYouTubeRestrict, 146 prefs::kForceYouTubeRestrict,
144 base::Value::Type::INTEGER}, 147 base::Value::Type::INTEGER},
145 { key::kPasswordManagerEnabled, 148 { key::kPasswordManagerEnabled,
146 password_manager::prefs::kPasswordManagerSavingEnabled, 149 password_manager::prefs::kPasswordManagerSavingEnabled,
147 base::Value::Type::BOOLEAN }, 150 base::Value::Type::BOOLEAN },
148 { key::kPrintingEnabled, 151 { key::kPrintingEnabled,
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 #endif // defined(OS_CHROMEOS) 1009 #endif // defined(OS_CHROMEOS)
1007 1010
1008 #if BUILDFLAG(ENABLE_PLUGINS) 1011 #if BUILDFLAG(ENABLE_PLUGINS)
1009 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1012 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
1010 #endif // BUILDFLAG(ENABLE_PLUGINS) 1013 #endif // BUILDFLAG(ENABLE_PLUGINS)
1011 1014
1012 return handlers; 1015 return handlers;
1013 } 1016 }
1014 1017
1015 } // namespace policy 1018 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698