Skip to content

Commit

Permalink
Merge pull request #8280 from /issues/14794
Browse files Browse the repository at this point in the history
Fix Brave Ads build error on Android for AdsServiceImpl::IsFullScreen
  • Loading branch information
tmancey authored Mar 17, 2021
2 parents 7c3d5c9 + 0e4a2e3 commit 2c2da5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/brave_ads/browser/ads_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
#include "brave/components/services/bat_ads/public/interfaces/bat_ads.mojom.h"
#include "brave/grit/brave_generated_resources.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/fullscreen.h"
#include "chrome/browser/notifications/notification_display_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/chrome_paths.h"
#if !defined(OS_ANDROID)
#include "brave/ui/brave_ads/message_popup_view.h"
#include "chrome/browser/fullscreen.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#endif
Expand Down Expand Up @@ -1727,7 +1727,11 @@ bool AdsServiceImpl::IsForeground() const {
}

bool AdsServiceImpl::IsFullScreen() const {
#if !defined(OS_ANDROID)
return IsFullScreenMode();
#else
return true;
#endif
}

std::string AdsServiceImpl::GetLocale() const {
Expand Down

0 comments on commit 2c2da5d

Please sign in to comment.