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

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

Issue 10542048: Add a group policy controlling which sites can install extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yozments Created 8 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 | Annotate | Revision Log
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/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace prefs { 9 namespace prefs {
10 10
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 const char kDisableExtensions[] = "extensions.disabled"; 1333 const char kDisableExtensions[] = "extensions.disabled";
1334 1334
1335 // Whether the plugin finder that lets you install missing plug-ins is enabled. 1335 // Whether the plugin finder that lets you install missing plug-ins is enabled.
1336 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder"; 1336 const char kDisablePluginFinder[] = "plugins.disable_plugin_finder";
1337 1337
1338 // Integer boolean representing the width (in pixels) of the container for 1338 // Integer boolean representing the width (in pixels) of the container for
1339 // browser actions. 1339 // browser actions.
1340 const char kBrowserActionContainerWidth[] = 1340 const char kBrowserActionContainerWidth[] =
1341 "extensions.browseractions.container.width"; 1341 "extensions.browseractions.container.width";
1342 1342
1343 // The sites that are allowed to install extensions. These sites should be
1344 // allowed to install extensions without the scary dangerous downloads bar.
1345 // Also, when off-store-extension installs are disabled, these sites are exempt.
1346 const char kExtensionAllowedInstallSites[] = "extensions.allowed_install_sites";
1347
1343 // A whitelist of extension ids the user can install: exceptions from the 1348 // A whitelist of extension ids the user can install: exceptions from the
1344 // following blacklist. This is controlled by the administrator. 1349 // following blacklist.
1345 const char kExtensionInstallAllowList[] = "extensions.install.allowlist"; 1350 const char kExtensionInstallAllowList[] = "extensions.install.allowlist";
1351
1346 // A blacklist, containing extensions the user cannot install. This list can 1352 // A blacklist, containing extensions the user cannot install. This list can
1347 // conatin "*" meaning all extensions. This is controlled by the administrator. 1353 // conatin "*" meaning all extensions. This list should not be confused with the
Mattias Nissler (ping if slow) 2012/06/08 09:38:22 nit: s/conatin/contain/
1348 // This list should not be confused with the extension blacklist, which is 1354 // extension blacklist, which is Google controlled.
1349 // Google controlled.
1350 const char kExtensionInstallDenyList[] = "extensions.install.denylist"; 1355 const char kExtensionInstallDenyList[] = "extensions.install.denylist";
1351 1356
1352 // Whether we have run the extension-alert system (see ExtensionGlobalError) 1357 // Whether we have run the extension-alert system (see ExtensionGlobalError)
1353 // at least once for this profile. 1358 // at least once for this profile.
1354 const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized"; 1359 const char kExtensionAlertsInitializedPref[] = "extensions.alerts.initialized";
1355 1360
1356 // A list containing extensions that Chrome will silently install 1361 // A list containing extensions that Chrome will silently install
1357 // at startup time. It is a list of strings, each string contains 1362 // at startup time. It is a list of strings, each string contains
1358 // an extension ID and an update URL, delimited by a semicolon. 1363 // an extension ID and an update URL, delimited by a semicolon.
1359 // This preference is set by an admin policy, and meant to be only 1364 // This preference is set by an admin policy, and meant to be only
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 const char kInManagedMode[] = "managed_mode"; 1916 const char kInManagedMode[] = "managed_mode";
1912 1917
1913 // Counts how many more times the 'profile on a network share' warning should be 1918 // Counts how many more times the 'profile on a network share' warning should be
1914 // shown to the user before the next silence period. 1919 // shown to the user before the next silence period.
1915 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; 1920 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left";
1916 // Tracks the time of the last shown warning. Used to reset 1921 // Tracks the time of the last shown warning. Used to reset
1917 // |network_profile.warnings_left| after a silence period. 1922 // |network_profile.warnings_left| after a silence period.
1918 const char kNetworkProfileLastWarningTime[] = 1923 const char kNetworkProfileLastWarningTime[] =
1919 "network_profile.last_warning_time"; 1924 "network_profile.last_warning_time";
1920 } // namespace prefs 1925 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698