Index: components/offline_pages/background/request_coordinator.h |
diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h |
index 8ab2385f1801e4729ad97a497100e1820784636c..263128f7edded1671f78c11e0b2cd76e7eb5b9f4 100644 |
--- a/components/offline_pages/background/request_coordinator.h |
+++ b/components/offline_pages/background/request_coordinator.h |
@@ -145,6 +145,8 @@ class RequestCoordinator : public KeyedService, |
immediate_schedule_callback_ = callback; |
} |
+ void StartImmediatelyForTest() { StartImmediatelyIfConnected(); } |
+ |
// Observers implementing the RequestCoordinator::Observer interface can |
// register here to get notifications of changes to request state. This |
// pointer is not owned, and it is the callers responsibility to remove the |
@@ -339,6 +341,9 @@ class RequestCoordinator : public KeyedService, |
friend class RequestCoordinatorTest; |
+ // Cached value of whether low end device. Overwritable for testing. |
+ bool is_low_end_device_; |
+ |
// The offliner can only handle one request at a time - if the offliner is |
// busy, prevent other requests. This flag marks whether the offliner is in |
// use. |