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

Unified Diff: components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerUma.java

Issue 2948713002: Update WebAPK after the user closes WebAPK
Patch Set: Merge branch 'background_updates4' into background_updates Created 3 years, 3 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: components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerUma.java
diff --git a/components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerUma.java b/components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerUma.java
index b75e8231d20b1323f996a765f4315c98e08defe2..3a0585ddaf4f5f54a4b8a3fdd5ef62faa45d7a78 100644
--- a/components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerUma.java
+++ b/components/background_task_scheduler/android/java/src/org/chromium/components/background_task_scheduler/BackgroundTaskSchedulerUma.java
@@ -28,8 +28,9 @@ class BackgroundTaskSchedulerUma {
static final int BACKGROUND_TASK_DOWNLOAD_SERVICE = 8;
static final int BACKGROUND_TASK_DOWNLOAD_CLEANUP = 9;
static final int BACKGROUND_TASK_WEBVIEW_VARIATIONS = 10;
+ static final int BACKGROUND_TASK_WEBAPK_UPDATE = 11;
// Keep this one at the end and increment appropriately when adding new tasks.
- static final int BACKGROUND_TASK_COUNT = 11;
+ static final int BACKGROUND_TASK_COUNT = 12;
static final String KEY_CACHED_UMA = "bts_cached_uma";
@@ -231,6 +232,8 @@ class BackgroundTaskSchedulerUma {
return BACKGROUND_TASK_DOWNLOAD_CLEANUP;
case TaskIds.WEBVIEW_VARIATIONS_SEED_FETCH_JOB_ID:
return BACKGROUND_TASK_WEBVIEW_VARIATIONS;
+ case TaskIds.WEBAPK_UPDATE_JOB_ID:
+ return BACKGROUND_TASK_WEBAPK_UPDATE;
default:
assert false;
}

Powered by Google App Engine
This is Rietveld 408576698