Skip to content

Commit

Permalink
Fixes unused function error on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarolin committed Jul 10, 2019
1 parent 99a4fbb commit d4bbcf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utility/brave_content_utility_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_manager::Service> service) {
service_manager::Service::RunAsyncUntilTermination(
std::move(service),
base::BindOnce([] { content::UtilityThread::Get()->ReleaseProcess(); }));
}
#endif

#if BUILDFLAG(ENABLE_TOR)
std::unique_ptr<service_manager::Service> CreateTorLauncherService(
Expand Down

0 comments on commit d4bbcf2

Please sign in to comment.