Skip to content

Commit

Permalink
[Android] Pass Profile to PrefChangeRegistrar
Browse files Browse the repository at this point in the history
Chromium change:
https://chromium.googlesource.com/chromium/src/+/a501e6d3f2caa64e42ba67eb4aa1f5d65cfcccc8

[Android] Pass Profile to PrefChangeRegistrar

Also split PrefChangeRegistrar out from chrome/browser/preferences:java
to another target in preparation to move it to components/prefs

Bug: 40254448,381122436
  • Loading branch information
samartnik committed Nov 29, 2024
1 parent 2cfc6e3 commit 0182146
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ public void finishNativeInitialization() {

BraveHelper.maybeMigrateSettings();

PrefChangeRegistrar mPrefChangeRegistrar = new PrefChangeRegistrar();
PrefChangeRegistrar mPrefChangeRegistrar = new PrefChangeRegistrar(getCurrentProfile());
mPrefChangeRegistrar.addObserver(BravePref.SCHEDULED_CAPTCHA_ID, this);

if (UserPrefs.get(ProfileManager.getLastUsedRegularProfile())
Expand Down

0 comments on commit 0182146

Please sign in to comment.