Skip to content

Commit

Permalink
Fix desktop build failure due to wrong use of Android-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
deeppandya committed Aug 24, 2020
1 parent dc01c7c commit a3f2b77
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@

#include "brave/components/brave_perf_predictor/browser/perf_predictor_tab_helper.h"

#include "brave/browser/android/brave_shields_content_settings.h"
#include "brave/components/brave_perf_predictor/browser/named_third_party_registry_factory.h"
#include "brave/components/brave_perf_predictor/common/pref_names.h"
#include "chrome/browser/android/tab_android.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/user_prefs/user_prefs.h"
Expand All @@ -18,6 +16,10 @@
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_user_data.h"

#if defined(OS_ANDROID)
#include "brave/browser/android/brave_shields_content_settings.h"
#endif

namespace brave_perf_predictor {

namespace {
Expand Down Expand Up @@ -107,8 +109,10 @@ void PerfPredictorTabHelper::RecordSavings() {

if (bandwidth_tracker_) {
bandwidth_tracker_->RecordSavings(savings);
#if defined(OS_ANDROID)
chrome::android::BraveShieldsContentSettings::DispatchSavedBandwidth(
savings);
#endif
}
}
}
Expand Down

0 comments on commit a3f2b77

Please sign in to comment.