From 590e71549dd007471c735f1c0430d31bab01e269 Mon Sep 17 00:00:00 2001 From: bridiver <34129+bridiver@users.noreply.github.com> Date: Sun, 22 Sep 2024 06:28:09 -0700 Subject: [PATCH] remove `//chrome` deps --- .../browser/rewards_service_impl_jp_unittest.cc | 7 +------ .../brave_rewards/browser/rewards_service_impl_unittest.cc | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/components/brave_rewards/browser/rewards_service_impl_jp_unittest.cc b/components/brave_rewards/browser/rewards_service_impl_jp_unittest.cc index dd375f78af42..31f01419128b 100644 --- a/components/brave_rewards/browser/rewards_service_impl_jp_unittest.cc +++ b/components/brave_rewards/browser/rewards_service_impl_jp_unittest.cc @@ -13,8 +13,6 @@ #include "brave/components/brave_rewards/core/global_constants.h" #include "brave/components/greaselion/browser/buildflags/buildflags.h" #include "brave/components/l10n/common/test/scoped_default_locale.h" -#include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service_factory.h" -#include "chrome/browser/favicon/favicon_service_factory.h" #include "chrome/browser/profiles/profile.h" #include "chrome/test/base/testing_browser_process.h" #include "components/prefs/pref_service.h" @@ -42,10 +40,7 @@ class RewardsServiceJPTest : public testing::Test { profile_ = CreateBraveRewardsProfile(temp_dir_.GetPath()); ASSERT_TRUE(profile_); rewards_service_ = std::make_unique( - profile()->GetPrefs(), profile()->GetPath(), - FaviconServiceFactory::GetForProfile( - profile(), ServiceAccessType::EXPLICIT_ACCESS), - BitmapFetcherServiceFactory::GetForBrowserContext(profile()), + profile()->GetPrefs(), profile()->GetPath(), nullptr, nullptr, profile()->GetDefaultStoragePartition(), #if BUILDFLAG(ENABLE_GREASELION) nullptr, diff --git a/components/brave_rewards/browser/rewards_service_impl_unittest.cc b/components/brave_rewards/browser/rewards_service_impl_unittest.cc index a65a55e6ee9e..a8bbd91b47c2 100644 --- a/components/brave_rewards/browser/rewards_service_impl_unittest.cc +++ b/components/brave_rewards/browser/rewards_service_impl_unittest.cc @@ -18,8 +18,6 @@ #include "brave/components/brave_rewards/core/global_constants.h" #include "brave/components/greaselion/browser/buildflags/buildflags.h" #include "brave/components/l10n/common/test/scoped_default_locale.h" -#include "chrome/browser/bitmap_fetcher/bitmap_fetcher_service_factory.h" -#include "chrome/browser/favicon/favicon_service_factory.h" #include "chrome/browser/profiles/profile.h" #include "chrome/test/base/testing_browser_process.h" #include "components/prefs/pref_service.h" @@ -69,10 +67,7 @@ class RewardsServiceTest : public testing::Test { ASSERT_TRUE(profile_.get()); rewards_service_ = std::make_unique( - profile()->GetPrefs(), profile()->GetPath(), - FaviconServiceFactory::GetForProfile( - profile(), ServiceAccessType::EXPLICIT_ACCESS), - BitmapFetcherServiceFactory::GetForBrowserContext(profile()), + profile()->GetPrefs(), profile()->GetPath(), nullptr, nullptr, profile()->GetDefaultStoragePartition(), #if BUILDFLAG(ENABLE_GREASELION) nullptr,