From d4bbcf226ef2efb64a386bd3b30ff5bae4f796a8 Mon Sep 17 00:00:00 2001 From: Max Karolinskiy Date: Mon, 8 Jul 2019 14:20:55 -0400 Subject: [PATCH] Fixes unused function error on Android. --- utility/brave_content_utility_client.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utility/brave_content_utility_client.cc b/utility/brave_content_utility_client.cc index 6e27daf9d19a..b574f7552101 100644 --- a/utility/brave_content_utility_client.cc +++ b/utility/brave_content_utility_client.cc @@ -36,12 +36,15 @@ BraveContentUtilityClient::~BraveContentUtilityClient() = default; namespace { +#if BUILDFLAG(BRAVE_ADS_ENABLED) || BUILDFLAG(BRAVE_REWARDS_ENABLED) || \ + BUILDFLAG(ENABLE_TOR) void RunServiceAsyncThenTerminateProcess( std::unique_ptr service) { service_manager::Service::RunAsyncUntilTermination( std::move(service), base::BindOnce([] { content::UtilityThread::Get()->ReleaseProcess(); })); } +#endif #if BUILDFLAG(ENABLE_TOR) std::unique_ptr CreateTorLauncherService(