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

Unified Diff: components/offline_pages/background/request_coordinator.cc

Issue 2433283003: [Offline Page] Fix test failure on svelte devices. (Closed)
Patch Set: 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 | components/offline_pages/background/request_coordinator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/background/request_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
index d1d380b005043d4a541073c48f6832a005653476..88caef0e468a4a5e76cf0947272eb755b1150da8 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -447,8 +447,11 @@ RequestCoordinator::TryImmediateStart() {
return OfflinerImmediateStartStatus::BUSY;
// Make sure we are not on svelte device to start immediately.
- if (base::SysInfo::IsLowEndDevice())
+ // Let the scheduler know we are done processing and failed due to svelte.
+ if (base::SysInfo::IsLowEndDevice()) {
+ immediate_schedule_callback_.Run(false);
return OfflinerImmediateStartStatus::NOT_STARTED_ON_SVELTE;
+ }
// Make sure we have reasonable network quality (or at least a connection).
if (network_quality_estimator_) {
« no previous file with comments | « no previous file | components/offline_pages/background/request_coordinator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698