From ccfda84924056c3ffac7a990745f5574aa720ce1 Mon Sep 17 00:00:00 2001 From: bridiver <34129+bridiver@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:30:13 -0700 Subject: [PATCH] fixes --- browser/brave_rewards/rewards_service_factory.cc | 2 +- components/brave_rewards/browser/rewards_service_impl.cc | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)); } };