Commit b94a5894 authored by rajendrant's avatar rajendrant Committed by Commit Bot

Remove ApplicationStatusListener calls

The application state is always treated as foreground. This is to check if
the android x86 crashes reduce.

Bug: 865373
Change-Id: I6e3ee471b4c775b719d0dce9d5ac9ac0ee1e724d
Reviewed-on: https://chromium-review.googlesource.com/1149513Reviewed-by: default avatarrajendrant <rajendrant@chromium.org>
Reviewed-by: default avatarTarun Bansal <tbansal@chromium.org>
Reviewed-by: default avatarRyan Sturm <ryansturm@chromium.org>
Commit-Queue: rajendrant <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577965}
parent 17efa884
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/trace_event/trace_event.h" #include "base/trace_event/trace_event.h"
#include "base/values.h" #include "base/values.h"
#include "build/build_config.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h" #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h" #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h"
#include "components/data_reduction_proxy/core/browser/data_usage_store.h" #include "components/data_reduction_proxy/core/browser/data_usage_store.h"
...@@ -30,10 +29,6 @@ ...@@ -30,10 +29,6 @@
#include "components/prefs/scoped_user_pref_update.h" #include "components/prefs/scoped_user_pref_update.h"
#include "net/base/mime_util.h" #include "net/base/mime_util.h"
#if defined(OS_ANDROID)
#include "base/android/application_status_listener.h"
#endif
namespace data_reduction_proxy { namespace data_reduction_proxy {
namespace { namespace {
...@@ -1448,10 +1443,6 @@ void DataReductionProxyCompressionStats::RecordWeeklyAggregateDataUse( ...@@ -1448,10 +1443,6 @@ void DataReductionProxyCompressionStats::RecordWeeklyAggregateDataUse(
content_type, data_used_kb); content_type, data_used_kb);
} else { } else {
bool is_app_foreground = true; bool is_app_foreground = true;
#if defined(OS_ANDROID)
is_app_foreground = base::android::ApplicationStatusListener::GetState() ==
base::android::APPLICATION_STATE_HAS_RUNNING_ACTIVITIES;
#endif
if (is_app_foreground) { if (is_app_foreground) {
AddToDictionaryPref(pref_service_, AddToDictionaryPref(pref_service_,
prefs::kThisWeekServicesDownstreamForegroundKB, prefs::kThisWeekServicesDownstreamForegroundKB,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment