Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
use constants for “content_settings”
Browse files Browse the repository at this point in the history
auditors @bbondy @darkdh
  • Loading branch information
bridiver committed May 21, 2017
1 parent 51b8726 commit 6df35b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion brave/browser/brave_browser_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/dom_storage_context.h"
#include "content/public/browser/storage_partition.h"
#include "extensions/browser/pref_names.h"
#include "extensions/features/features.h"
#include "net/base/escape.h"
#include "net/cookies/cookie_store.h"
Expand Down Expand Up @@ -376,7 +377,7 @@ void BraveBrowserContext::CreateProfilePrefs(

if (IsOffTheRecord()) {
overlay_pref_names_.push_back("app_state");
overlay_pref_names_.push_back("content_settings");
overlay_pref_names_.push_back(extensions::pref_names::kPrefContentSettings);
overlay_pref_names_.push_back(prefs::kPartitionPerHostZoomLevels);
user_prefs_.reset(
original_context()->user_prefs()->CreateIncognitoPrefService(
Expand All @@ -391,6 +392,8 @@ void BraveBrowserContext::CreateProfilePrefs(
user_prefs::UserPrefs::Set(this, user_prefs_.get());
} else {
pref_registry_->RegisterDictionaryPref("app_state");
pref_registry_->RegisterDictionaryPref(
extensions::pref_names::kPrefContentSettings);
pref_registry_->RegisterBooleanPref(
prefs::kSavingBrowserHistoryDisabled, false);
pref_registry_->RegisterBooleanPref(
Expand Down

1 comment on commit 6df35b0

@darkdh
Copy link
Member

@darkdh darkdh commented on 6df35b0 May 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.