Commit 3ac3edc2 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Remove Safe Browsing preferences from incognito whitelist.

Preferences related to Safe Browsing are removed from the persistent
storage list for incognito mode.
After this CL, if these preferences are changed from incognito mode,
they are only stored in memory and won't affect user profile.

Bug: 861722
Change-Id: I4e19fd53d5fd6c1e59991be70f443c94696d0b7f
Reviewed-on: https://chromium-review.googlesource.com/1155599Reviewed-by: default avatarJialiu Lin <jialiul@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#579697}
parent 11fd0730
......@@ -6,6 +6,7 @@
#include <vector>
#include "base/stl_util.h"
#include "build/build_config.h"
#include "chrome/common/pref_names.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
......@@ -26,7 +27,6 @@
#include "components/rappor/rappor_pref_names.h"
#include "components/rappor/rappor_prefs.h"
#include "components/reading_list/core/reading_list_pref_names.h"
#include "components/safe_browsing/common/safe_browsing_prefs.h"
#include "components/search_engines/search_engines_pref_names.h"
#include "components/signin/core/browser/signin_pref_names.h"
#include "components/spellcheck/browser/pref_names.h"
......@@ -915,21 +915,6 @@ const char* incognito_whitelist[] = {
// components/reading_list/core/reading_list_pref_names.h
reading_list::prefs::kReadingListHasUnseenEntries,
// components/safe_browsing/common/safe_browsing_prefs.h
prefs::kSafeBrowsingExtendedReportingOptInAllowed,
prefs::kSafeBrowsingIncidentsSent,
prefs::kSafeBrowsingProceedAnywayDisabled,
prefs::kSafeBrowsingSawInterstitialExtendedReporting,
prefs::kSafeBrowsingSawInterstitialScoutReporting,
prefs::kSafeBrowsingScoutGroupSelected,
prefs::kSafeBrowsingScoutReportingEnabled,
prefs::kSafeBrowsingTriggerEventTimestamps,
prefs::kSafeBrowsingUnhandledSyncPasswordReuses,
prefs::kSafeBrowsingWhitelistDomains,
prefs::kPasswordProtectionChangePasswordURL,
prefs::kPasswordProtectionLoginURLs,
prefs::kPasswordProtectionWarningTrigger,
// components/search_engines/search_engines_pref_names.h
prefs::kSyncedDefaultSearchProviderGUID,
prefs::kDefaultSearchProviderEnabled, prefs::kSearchProviderOverrides,
......
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