Revert "sec: deprecate some webPreference defaults to be secure-by-default (#14284)" (#14380)

This reverts commit 66d6ba8689.
This commit is contained in:
Samuel Attard 2018-08-30 09:57:49 +12:00 committed by GitHub
parent 66d6ba8689
commit 1b7418fb7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 43 additions and 100 deletions

View file

@ -66,15 +66,11 @@ class WebContentsPreferences
friend class content::WebContentsUserData<WebContentsPreferences>;
friend class AtomBrowserClient;
enum class Status { Deprecated, Stable };
// Get WebContents according to process ID.
static content::WebContents* GetWebContentsFromProcessID(int process_id);
// Set preference value to given bool if user did not provide value
bool SetDefaultBoolIfUndefined(const base::StringPiece& key,
bool val,
Status status = Status::Stable);
bool SetDefaultBoolIfUndefined(const base::StringPiece& key, bool val);
static std::vector<WebContentsPreferences*> instances_;