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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java

Issue 2400393002: Set up a backup schedule request if we have deferred requests. (Closed)
Patch Set: CR feedback per Dimich Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_scheduler_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java
index 423761f8116e0b4c8e32a6574d2de83f5bdfc002..79099f18aac7eb239d1856cba5334837c727ad32 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerBridge.java
@@ -37,6 +37,11 @@ public class BackgroundSchedulerBridge {
}
@CalledByNative
+ private static void backupSchedule(TriggerConditions triggerConditions, long delayInSeconds) {
+ BackgroundScheduler.schedule(ContextUtils.getApplicationContext(), triggerConditions);
dougarnett 2016/10/17 18:33:40 delayInSeconds not used here? Missing a TODO at le
+ }
+
+ @CalledByNative
private static void unschedule() {
BackgroundScheduler.unschedule(ContextUtils.getApplicationContext());
}
« no previous file with comments | « no previous file | chrome/browser/android/offline_pages/background_scheduler_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698