Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Unified Diff: sync/android/java/src/org/chromium/sync/notifier/InvalidationService.java

Issue 159173002: Refactor ActivityStatus to not store current activity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/android/java/src/org/chromium/sync/notifier/InvalidationService.java
diff --git a/sync/android/java/src/org/chromium/sync/notifier/InvalidationService.java b/sync/android/java/src/org/chromium/sync/notifier/InvalidationService.java
index a9d62a379ddb4490b16eb0dcaf7badaea5864375..37a8e6a8fdb0bb1e7ffbdc5613b786f176f37941 100644
--- a/sync/android/java/src/org/chromium/sync/notifier/InvalidationService.java
+++ b/sync/android/java/src/org/chromium/sync/notifier/InvalidationService.java
@@ -19,7 +19,7 @@ import com.google.ipc.invalidation.external.client.types.Invalidation;
import com.google.ipc.invalidation.external.client.types.ObjectId;
import com.google.protos.ipc.invalidation.Types.ClientType;
-import org.chromium.base.ActivityStatus;
+import org.chromium.base.ApplicationStatus;
import org.chromium.base.CollectionUtil;
import org.chromium.sync.internal_api.pub.base.ModelType;
import org.chromium.sync.notifier.InvalidationPreferences.EditContext;
@@ -478,7 +478,7 @@ public class InvalidationService extends AndroidListener {
*/
@VisibleForTesting
boolean isChromeInForeground() {
- return ActivityStatus.isApplicationVisible();
+ return ApplicationStatus.hasVisibleActivities();
}
/** Returns whether the notification client has been started, for tests. */
« net/disk_cache/simple/simple_index.cc ('K') | « net/disk_cache/simple/simple_index.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698