Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Sep 22, 2024
1 parent 31569cb commit ccfda84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion browser/brave_rewards/rewards_service_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions components/brave_rewards/browser/rewards_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<RewardsServiceImpl> self,
mojom::Environment environment) {
if (self) {
prefs_->SetInteger(prefs::kWalletCreationEnvironment,
static_cast<int>(environment));
self->prefs_->SetInteger(prefs::kWalletCreationEnvironment,
static_cast<int>(environment));
}
};

Expand Down

0 comments on commit ccfda84

Please sign in to comment.