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

Update incognito session initialization #648

Merged
merged 1 commit into from
Sep 13, 2018
Merged

Update incognito session initialization #648

merged 1 commit into from
Sep 13, 2018

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Sep 13, 2018

With https://chromium.googlesource.com/chromium/src/+/f623bafe9c5b8cbd1d63c4d7c9b69de172552df5, the values being registered in a session were changed from an exclusion (ex: which values to NOT put in OverlayUserPrefStore) to an inclusion (ex: which values to PERSIST, even in an incognito profile)

Fixes brave/browser-laptop#15191

With https://chromium.googlesource.com/chromium/src/+/f623bafe9c5b8cbd1d63c4d7c9b69de172552df5, the values were changed from an exclusion (ex: which values to NOT put in `OverlayUserPrefStore`) to an inclusion (ex: which values to PERSIST, even in an incognito profile)

Fixes brave/browser-laptop#15191
@bsclifton bsclifton self-assigned this Sep 13, 2018
@bsclifton
Copy link
Member Author

I renamed the variables/methods to match the renaming done upstream:

AddOverlayPref => RegisterPersistentPref
overlay => persist
overlay_pref_names => persistent_pref_names_

See https://chromium.googlesource.com/chromium/src/+/f623bafe9c5b8cbd1d63c4d7c9b69de172552df5%5E%21/#F4 for more info

@@ -532,21 +532,18 @@ void BraveBrowserContext::CreateProfilePrefs(
bool async = false;

if (IsOffTheRecord()) {
overlay_pref_names_.push_back("app_state");
overlay_pref_names_.push_back(extensions::pref_names::kPrefContentSettings);
overlay_pref_names_.push_back(prefs::kPartitionPerHostZoomLevels);
Copy link
Member Author

@bsclifton bsclifton Sep 13, 2018

Choose a reason for hiding this comment

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

Here's the actual important fix (above 3 lines); NOT passing these to what because an inclusion list for incognito pref key names

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants