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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Patch set 5 + rebase 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 (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/features.h" 9 #include "chrome/common/features.h"
10 #include "chrome/common/pref_font_webkit_names.h" 10 #include "chrome/common/pref_font_webkit_names.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // "noinstall" to disable them. This property is usually set in the 51 // "noinstall" to disable them. This property is usually set in the
52 // master_preferences and copied into the profile preferences on first run. 52 // master_preferences and copied into the profile preferences on first run.
53 // Defaults apps are installed only when creating a new profile. 53 // Defaults apps are installed only when creating a new profile.
54 const char kDefaultApps[] = "default_apps"; 54 const char kDefaultApps[] = "default_apps";
55 55
56 // Disables screenshot accelerators and extension APIs. 56 // Disables screenshot accelerators and extension APIs.
57 // This setting resides both in profile prefs and local state. Accelerator 57 // This setting resides both in profile prefs and local state. Accelerator
58 // handling code reads local state, while extension APIs use profile pref. 58 // handling code reads local state, while extension APIs use profile pref.
59 const char kDisableScreenshots[] = "disable_screenshots"; 59 const char kDisableScreenshots[] = "disable_screenshots";
60 60
61 // Prevents certain types of downloads based on integre value:
62 // 0 - Allow all downloads (default)
63 // 1 - Disable Safe Browsing dangerous files
64 // 2 - Disable Safe Browsing potentially dangerous files
65 // 3 - Disable all downloads
66 const char kDownloadRestrictions[] = "download_restrictions";
67
61 // If set to true profiles are created in ephemeral mode and do not store their 68 // If set to true profiles are created in ephemeral mode and do not store their
62 // data in the profile folder on disk but only in memory. 69 // data in the profile folder on disk but only in memory.
63 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode"; 70 const char kForceEphemeralProfiles[] = "profile.ephemeral_mode";
64 71
65 // A boolean specifying whether the New Tab page is the home page or not. 72 // A boolean specifying whether the New Tab page is the home page or not.
66 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; 73 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage";
67 74
68 // This is the URL of the page to load when opening new tabs. 75 // This is the URL of the page to load when opening new tabs.
69 const char kHomePage[] = "homepage"; 76 const char kHomePage[] = "homepage";
70 77
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 // default search engine, if it is the Google search engine. 2392 // default search engine, if it is the Google search engine.
2386 const char kGoogleDSEGeolocationSetting[] = "google_dse_geolocation_setting"; 2393 const char kGoogleDSEGeolocationSetting[] = "google_dse_geolocation_setting";
2387 2394
2388 // A dictionary of manifest URLs of Web Share Targets to a dictionary containing 2395 // A dictionary of manifest URLs of Web Share Targets to a dictionary containing
2389 // attributes of its share_target field found in its manifest. Each key in the 2396 // attributes of its share_target field found in its manifest. Each key in the
2390 // dictionary is the name of the attribute, and the value is the corresponding 2397 // dictionary is the name of the attribute, and the value is the corresponding
2391 // value. 2398 // value.
2392 const char kWebShareVisitedTargets[] = "profile.web_share.visited_targets"; 2399 const char kWebShareVisitedTargets[] = "profile.web_share.visited_targets";
2393 2400
2394 } // namespace prefs 2401 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698