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

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

Issue 2943763002: Add a new group policy to disable safe browsing for files downloaded from trusted sources. (Closed)
Patch Set: Fix an XML goof Created 3 years, 5 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
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // successfully checked via ChildAccountService. 69 // successfully checked via ChildAccountService.
70 const char kChildAccountStatusKnown[] = "child_account_status_known"; 70 const char kChildAccountStatusKnown[] = "child_account_status_known";
71 71
72 // A string property indicating whether default apps should be installed 72 // A string property indicating whether default apps should be installed
73 // in this profile. Use the value "install" to enable defaults apps, or 73 // in this profile. Use the value "install" to enable defaults apps, or
74 // "noinstall" to disable them. This property is usually set in the 74 // "noinstall" to disable them. This property is usually set in the
75 // master_preferences and copied into the profile preferences on first run. 75 // master_preferences and copied into the profile preferences on first run.
76 // Defaults apps are installed only when creating a new profile. 76 // Defaults apps are installed only when creating a new profile.
77 const char kDefaultApps[] = "default_apps"; 77 const char kDefaultApps[] = "default_apps";
78 78
79 // Disable SafeBrowsing checks for files coming from trusted URLs when false.
80 const char kSafeBrowsingForTrustedSourcesEnabled[] =
81 "safebrowsing_for_trusted_sources_enabled";
82
79 // Disables screenshot accelerators and extension APIs. 83 // Disables screenshot accelerators and extension APIs.
80 // This setting resides both in profile prefs and local state. Accelerator 84 // This setting resides both in profile prefs and local state. Accelerator
81 // handling code reads local state, while extension APIs use profile pref. 85 // handling code reads local state, while extension APIs use profile pref.
82 const char kDisableScreenshots[] = "disable_screenshots"; 86 const char kDisableScreenshots[] = "disable_screenshots";
83 87
84 // Prevents certain types of downloads based on integer value, which corresponds 88 // Prevents certain types of downloads based on integer value, which corresponds
85 // to DownloadPrefs::DownloadRestriction. 89 // to DownloadPrefs::DownloadRestriction.
86 // 0 - No special restrictions (default) 90 // 0 - No special restrictions (default)
87 // 1 - Block dangerous downloads 91 // 1 - Block dangerous downloads
88 // 2 - Block potentially dangerous downloads 92 // 2 - Block potentially dangerous downloads
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 "download.open_pdf_in_system_reader"; 1510 "download.open_pdf_in_system_reader";
1507 #endif 1511 #endif
1508 1512
1509 // String which specifies where to save html files to by default. 1513 // String which specifies where to save html files to by default.
1510 const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; 1514 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1511 1515
1512 // The type used to save the page. See the enum SavePackage::SavePackageType in 1516 // The type used to save the page. See the enum SavePackage::SavePackageType in
1513 // the chrome/browser/download/save_package.h for the possible values. 1517 // the chrome/browser/download/save_package.h for the possible values.
1514 const char kSaveFileType[] = "savefile.type"; 1518 const char kSaveFileType[] = "savefile.type";
1515 1519
1520 // A list of download sources that can be trusted, e.g., enterprise intranet.
1521 const char kTrustedDownloadSources[] = "trusted_download_sources";
1522
1516 // String which specifies the last directory that was chosen for uploading 1523 // String which specifies the last directory that was chosen for uploading
1517 // or opening a file. 1524 // or opening a file.
1518 const char kSelectFileLastDirectory[] = "selectfile.last_directory"; 1525 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1519 1526
1520 // Boolean that specifies if file selection dialogs are shown. 1527 // Boolean that specifies if file selection dialogs are shown.
1521 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; 1528 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1522 1529
1523 // Map of default tasks, associated by MIME type. 1530 // Map of default tasks, associated by MIME type.
1524 const char kDefaultTasksByMimeType[] = 1531 const char kDefaultTasksByMimeType[] =
1525 "filebrowser.tasks.default_by_mime_type"; 1532 "filebrowser.tasks.default_by_mime_type";
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 // Accumulated counters of days with specified Chrome usage. When there is 2595 // Accumulated counters of days with specified Chrome usage. When there is
2589 // likely a network connection, these counters are reported via UMA and reset. 2596 // likely a network connection, these counters are reported via UMA and reset.
2590 const char kOfflineUsageUnusedCount[] = "offline_pages.unused_count"; 2597 const char kOfflineUsageUnusedCount[] = "offline_pages.unused_count";
2591 const char kOfflineUsageStartedCount[] = "offline_pages.started_count"; 2598 const char kOfflineUsageStartedCount[] = "offline_pages.started_count";
2592 const char kOfflineUsageOfflineCount[] = "offline_pages.offline_count"; 2599 const char kOfflineUsageOfflineCount[] = "offline_pages.offline_count";
2593 const char kOfflineUsageOnlineCount[] = "offline_pages.online_count"; 2600 const char kOfflineUsageOnlineCount[] = "offline_pages.online_count";
2594 const char kOfflineUsageMixedCount[] = "offline_pages.mixed_count"; 2601 const char kOfflineUsageMixedCount[] = "offline_pages.mixed_count";
2595 #endif 2602 #endif
2596 2603
2597 } // namespace prefs 2604 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698