Commit 3987ee60 authored by Bettina's avatar Bettina Committed by Commit Bot

Enable enhanced protection through command line.

If the UX is not ready, there is no place to
manually set the enhanced protection for
testing. The command line pref store
allows mapping a command line flag with
a pref.

Bug: 1063110
Change-Id: Ib1bef9a8fd01e7db43aeb29c96b7865893206089
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111054Reviewed-by: default avatarDaniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Commit-Queue: Bettina Dea <bdea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752064}
parent b62fc920
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include "components/language/core/browser/pref_names.h" #include "components/language/core/browser/pref_names.h"
#include "components/proxy_config/proxy_config_dictionary.h" #include "components/proxy_config/proxy_config_dictionary.h"
#include "components/proxy_config/proxy_config_pref_names.h" #include "components/proxy_config/proxy_config_pref_names.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/safe_browsing/core/common/safebrowsing_switches.h"
#include "components/sync/base/pref_names.h" #include "components/sync/base/pref_names.h"
#include "content/public/common/content_switches.h" #include "content/public/common/content_switches.h"
#include "services/network/public/cpp/network_switches.h" #include "services/network/public/cpp/network_switches.h"
...@@ -72,6 +74,8 @@ const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry ...@@ -72,6 +74,8 @@ const CommandLinePrefStore::BooleanSwitchToPreferenceMapEntry
{switches::kAllowCrossOriginAuthPrompt, {switches::kAllowCrossOriginAuthPrompt,
prefs::kAllowCrossOriginAuthPrompt, true}, prefs::kAllowCrossOriginAuthPrompt, true},
{switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true}, {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true},
{safe_browsing::switches::kSbEnableEnhancedProtection,
prefs::kSafeBrowsingEnhanced, true},
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
{chromeos::switches::kEnableTouchpadThreeFingerClick, {chromeos::switches::kEnableTouchpadThreeFingerClick,
prefs::kEnableTouchpadThreeFingerClick, true}, prefs::kEnableTouchpadThreeFingerClick, true},
......
...@@ -16,5 +16,8 @@ namespace switches { ...@@ -16,5 +16,8 @@ namespace switches {
const char kSbManualDownloadBlacklist[] = const char kSbManualDownloadBlacklist[] =
"safebrowsing-manual-download-blacklist"; "safebrowsing-manual-download-blacklist";
// Enable Safe Browsing Enhanced Protection.
const char kSbEnableEnhancedProtection[] =
"safebrowsing-enable-enhanced-protection";
} // namespace switches } // namespace switches
} // namespace safe_browsing } // namespace safe_browsing
...@@ -9,6 +9,7 @@ namespace safe_browsing { ...@@ -9,6 +9,7 @@ namespace safe_browsing {
namespace switches { namespace switches {
extern const char kSbManualDownloadBlacklist[]; extern const char kSbManualDownloadBlacklist[];
extern const char kSbEnableEnhancedProtection[];
} // namespace switches } // namespace switches
} // namespace safe_browsing } // namespace safe_browsing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment