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

Side by Side Diff: chrome/common/pref_names.cc

Issue 2369353002: Adds a pref and a policy to decide if PDFs should always be opened externally. (Closed)
Patch Set: Rebase and move the friend decl in the ifdef. Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/pref_font_webkit_names.h" 9 #include "chrome/common/pref_font_webkit_names.h"
10 10
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 // List pref containing names of plugins that are disabled by policy. 973 // List pref containing names of plugins that are disabled by policy.
974 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled"; 974 const char kPluginsDisabledPlugins[] = "plugins.plugins_disabled";
975 975
976 // List pref containing exceptions to the list of plugins disabled by policy. 976 // List pref containing exceptions to the list of plugins disabled by policy.
977 const char kPluginsDisabledPluginsExceptions[] = 977 const char kPluginsDisabledPluginsExceptions[] =
978 "plugins.plugins_disabled_exceptions"; 978 "plugins.plugins_disabled_exceptions";
979 979
980 // List pref containing names of plugins that are enabled by policy. 980 // List pref containing names of plugins that are enabled by policy.
981 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; 981 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled";
982 982
983 const char kAlwaysOpenPdfExternally[] = "plugins.always_open_pdf_externally";
Bernhard Bauer 2016/09/29 08:44:35 Can you name the constant in a way that reflects i
pastarmovj 2016/09/29 12:14:41 Done.
984
983 #if defined(ENABLE_PLUGINS) 985 #if defined(ENABLE_PLUGINS)
984 // Whether about:plugins is shown in the details mode or not. 986 // Whether about:plugins is shown in the details mode or not.
985 const char kPluginsShowDetails[] = "plugins.show_details"; 987 const char kPluginsShowDetails[] = "plugins.show_details";
986 #endif 988 #endif
987 989
988 // Boolean that indicates whether outdated plugins are allowed or not. 990 // Boolean that indicates whether outdated plugins are allowed or not.
989 const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; 991 const char kPluginsAllowOutdated[] = "plugins.allow_outdated";
990 992
991 // Boolean that indicates whether plugins that require authorization should 993 // Boolean that indicates whether plugins that require authorization should
992 // be always allowed or not. 994 // be always allowed or not.
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; 2256 const char kOriginTrialPublicKey[] = "origin_trials.public_key";
2255 2257
2256 // A list of origin trial features to disable by policy. 2258 // A list of origin trial features to disable by policy.
2257 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; 2259 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features";
2258 2260
2259 // Policy that indicates the state of updates for the binary components. 2261 // Policy that indicates the state of updates for the binary components.
2260 const char kComponentUpdatesEnabled[] = 2262 const char kComponentUpdatesEnabled[] =
2261 "component_updates.component_updates_enabled"; 2263 "component_updates.component_updates_enabled";
2262 2264
2263 } // namespace prefs 2265 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698