diff --git a/browser/brave_rewards/rewards_service_factory.cc b/browser/brave_rewards/rewards_service_factory.cc index c4c189695149..c33295b966cb 100644 --- a/browser/brave_rewards/rewards_service_factory.cc +++ b/browser/brave_rewards/rewards_service_factory.cc @@ -20,8 +20,8 @@ #include "chrome/browser/favicon/favicon_service_factory.h" #include "chrome/browser/profiles/incognito_helpers.h" #include "chrome/browser/profiles/profile.h" -#include "content/public/browser/storage_partition.h" #include "components/keyed_service/content/browser_context_dependency_manager.h" +#include "content/public/browser/storage_partition.h" #include "extensions/buildflags/buildflags.h" #if BUILDFLAG(ENABLE_EXTENSIONS) diff --git a/components/brave_rewards/browser/rewards_service_impl.cc b/components/brave_rewards/browser/rewards_service_impl.cc index c59a000fd8f4..f4fe4112e230 100644 --- a/components/brave_rewards/browser/rewards_service_impl.cc +++ b/components/brave_rewards/browser/rewards_service_impl.cc @@ -490,15 +490,15 @@ void RewardsServiceImpl::CreateRewardsWallet( return; } - prefs_->SetString(prefs::kDeclaredGeo, country); + self->prefs_->SetString(prefs::kDeclaredGeo, country); // Record in which environment the wallet was created (for display on the // rewards internals page). auto on_get_environment = [](base::WeakPtr self, mojom::Environment environment) { if (self) { - prefs_->SetInteger(prefs::kWalletCreationEnvironment, - static_cast(environment)); + self->prefs_->SetInteger(prefs::kWalletCreationEnvironment, + static_cast(environment)); } };