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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/services/gcm/GCMBackgroundTask.java

Issue 2814653003: [Android] BackgroundTaskScheduler reschedule implementation (Closed)
Patch Set: Rebasing Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.services.gcm; 5 package org.chromium.chrome.browser.services.gcm;
6 6
7 import android.annotation.TargetApi; 7 import android.annotation.TargetApi;
8 import android.content.Context; 8 import android.content.Context;
9 import android.os.Build; 9 import android.os.Build;
10 import android.os.Bundle; 10 import android.os.Bundle;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 * Called when the system has determined that processing the GCM message mus t be stopped. 48 * Called when the system has determined that processing the GCM message mus t be stopped.
49 * 49 *
50 * @return Boolean indicating whether the task has to be rescheduled. 50 * @return Boolean indicating whether the task has to be rescheduled.
51 */ 51 */
52 @MainThread 52 @MainThread
53 @Override 53 @Override
54 public boolean onStopTask(Context context, TaskParameters taskParameters) { 54 public boolean onStopTask(Context context, TaskParameters taskParameters) {
55 // The GCM Driver has no mechanism for aborting previously dispatched me ssages. 55 // The GCM Driver has no mechanism for aborting previously dispatched me ssages.
56 return false; 56 return false;
57 } 57 }
58
59 @MainThread
60 @Override
61 public void reschedule(Context context) {
62 // Needs appropriate implementation.
63 }
58 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698