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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/sync/DelayedSyncController.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: chrome/android/java/src/org/chromium/chrome/browser/sync/DelayedSyncController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/sync/DelayedSyncController.java b/chrome/android/java/src/org/chromium/chrome/browser/sync/DelayedSyncController.java
index d7a710325babac9f952f45402506ddd31d20fc28..2df5f060c057af35e32df374a2f251abf89cf932 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/sync/DelayedSyncController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/sync/DelayedSyncController.java
@@ -15,7 +15,7 @@ import android.util.Log;
import com.google.common.annotations.VisibleForTesting;
-import org.chromium.base.ActivityStatus;
+import org.chromium.base.ApplicationStatus;
import org.chromium.sync.notifier.SyncStatusHelper;
import org.chromium.sync.signin.AccountManagerHelper;
@@ -93,7 +93,7 @@ public class DelayedSyncController {
boolean shouldPerformSync(Context ctx, Bundle extras, Account account) {
boolean manualSync = isManualSync(extras);
- if (manualSync || ActivityStatus.isApplicationVisible()) {
+ if (manualSync || ApplicationStatus.hasVisibleActivities()) {
clearDelayedSyncs(ctx);
return true;
} else {

Powered by Google App Engine
This is Rietveld 408576698