From 0182146f9deba5430cf925e88069497885c778b5 Mon Sep 17 00:00:00 2001 From: Artem Samoilenko Date: Fri, 29 Nov 2024 16:19:42 -0500 Subject: [PATCH] [Android] Pass Profile to PrefChangeRegistrar 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 --- android/java/org/chromium/chrome/browser/app/BraveActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/java/org/chromium/chrome/browser/app/BraveActivity.java b/android/java/org/chromium/chrome/browser/app/BraveActivity.java index 2f101f874e4e..f468875d1cfa 100644 --- a/android/java/org/chromium/chrome/browser/app/BraveActivity.java +++ b/android/java/org/chromium/chrome/browser/app/BraveActivity.java @@ -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())