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

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: D'Ho! Created 3 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // successfully checked via ChildAccountService. 63 // successfully checked via ChildAccountService.
64 const char kChildAccountStatusKnown[] = "child_account_status_known"; 64 const char kChildAccountStatusKnown[] = "child_account_status_known";
65 65
66 // A string property indicating whether default apps should be installed 66 // A string property indicating whether default apps should be installed
67 // in this profile. Use the value "install" to enable defaults apps, or 67 // in this profile. Use the value "install" to enable defaults apps, or
68 // "noinstall" to disable them. This property is usually set in the 68 // "noinstall" to disable them. This property is usually set in the
69 // master_preferences and copied into the profile preferences on first run. 69 // master_preferences and copied into the profile preferences on first run.
70 // Defaults apps are installed only when creating a new profile. 70 // Defaults apps are installed only when creating a new profile.
71 const char kDefaultApps[] = "default_apps"; 71 const char kDefaultApps[] = "default_apps";
72 72
73 // Disable SafeBrowsing checks for files coming from trusted URLs when false.
74 const char kSafeBrowsingForTrustedSourcesEnabled[] =
75 "safebrowsing_for_trusted_sources_enabled";
76
73 // Disables screenshot accelerators and extension APIs. 77 // Disables screenshot accelerators and extension APIs.
74 // This setting resides both in profile prefs and local state. Accelerator 78 // This setting resides both in profile prefs and local state. Accelerator
75 // handling code reads local state, while extension APIs use profile pref. 79 // handling code reads local state, while extension APIs use profile pref.
76 const char kDisableScreenshots[] = "disable_screenshots"; 80 const char kDisableScreenshots[] = "disable_screenshots";
77 81
78 // Prevents certain types of downloads based on integer value, which corresponds 82 // Prevents certain types of downloads based on integer value, which corresponds
79 // to DownloadPrefs::DownloadRestriction. 83 // to DownloadPrefs::DownloadRestriction.
80 // 0 - No special restrictions (default) 84 // 0 - No special restrictions (default)
81 // 1 - Block dangerous downloads 85 // 1 - Block dangerous downloads
82 // 2 - Block potentially dangerous downloads 86 // 2 - Block potentially dangerous downloads
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 "download.open_pdf_in_system_reader"; 1505 "download.open_pdf_in_system_reader";
1502 #endif 1506 #endif
1503 1507
1504 // String which specifies where to save html files to by default. 1508 // String which specifies where to save html files to by default.
1505 const char kSaveFileDefaultDirectory[] = "savefile.default_directory"; 1509 const char kSaveFileDefaultDirectory[] = "savefile.default_directory";
1506 1510
1507 // The type used to save the page. See the enum SavePackage::SavePackageType in 1511 // The type used to save the page. See the enum SavePackage::SavePackageType in
1508 // the chrome/browser/download/save_package.h for the possible values. 1512 // the chrome/browser/download/save_package.h for the possible values.
1509 const char kSaveFileType[] = "savefile.type"; 1513 const char kSaveFileType[] = "savefile.type";
1510 1514
1515 // A list of download sources that can be trusted, e.g., enterprise intranet.
1516 const char kTrustedDownloadSources[] = "trusted_download_sources";
1517
1511 // String which specifies the last directory that was chosen for uploading 1518 // String which specifies the last directory that was chosen for uploading
1512 // or opening a file. 1519 // or opening a file.
1513 const char kSelectFileLastDirectory[] = "selectfile.last_directory"; 1520 const char kSelectFileLastDirectory[] = "selectfile.last_directory";
1514 1521
1515 // Boolean that specifies if file selection dialogs are shown. 1522 // Boolean that specifies if file selection dialogs are shown.
1516 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed"; 1523 const char kAllowFileSelectionDialogs[] = "select_file_dialogs.allowed";
1517 1524
1518 // Map of default tasks, associated by MIME type. 1525 // Map of default tasks, associated by MIME type.
1519 const char kDefaultTasksByMimeType[] = 1526 const char kDefaultTasksByMimeType[] =
1520 "filebrowser.tasks.default_by_mime_type"; 1527 "filebrowser.tasks.default_by_mime_type";
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 // internal format (int64) in local store. (I.e., this is not a per-profile 2572 // internal format (int64) in local store. (I.e., this is not a per-profile
2566 // pref.) 2573 // pref.)
2567 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time"; 2574 const char kClipboardLastModifiedTime[] = "ui.clipboard.last_modified_time";
2568 #endif 2575 #endif
2569 2576
2570 #if BUILDFLAG(ENABLE_OFFLINE_PAGES) 2577 #if BUILDFLAG(ENABLE_OFFLINE_PAGES)
2571 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff"; 2578 const char kOfflinePrefetchBackoff[] = "offline_prefetch.backoff";
2572 #endif 2579 #endif
2573 2580
2574 } // namespace prefs 2581 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698