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

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

Issue 2064323004: Defines initial DeviceConditions and and plumbs down through StartProcessing() call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 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/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java
index accc8aaef6f15194a17db9fa4744e80412db1d04..eeab851d169eae31db32ee8e6f157bfc3297cb30 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/StubBackgroundSchedulerProcessor.java
@@ -11,15 +11,21 @@ import org.chromium.chrome.browser.offlinepages.interfaces.BackgroundSchedulerPr
* Custom stub for our own BackgroundSchedulerRequestProcessor.
*/
public class StubBackgroundSchedulerProcessor implements BackgroundSchedulerProcessor {
- private boolean mStartProcessingCalled = false;
+ private boolean mStartProcessingCalled;
+ private DeviceConditions mDeviceConditions;
public boolean getStartProcessingCalled() {
return mStartProcessingCalled;
}
+ public DeviceConditions getDeviceConditions() {
+ return mDeviceConditions;
+ }
+
@Override
- public boolean startProcessing(Callback<Boolean> callback) {
+ public boolean startProcessing(DeviceConditions deviceConditions, Callback<Boolean> callback) {
mStartProcessingCalled = true;
+ mDeviceConditions = deviceConditions;
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698