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

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

Issue 2338313002: [Offline Pages] Gates immediate triggering (non scheduled) of background loading by whether low end… (Closed)
Patch Set: Created 4 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
« 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 faec69271fb1e7f9cbd08257dcff1c185af23da3..d5d37101dede68d04e3dddb2f6d4e57aee048d84 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
+#include "base/sys_info.h"
#include "base/time/time.h"
#include "components/offline_pages/background/offliner_factory.h"
#include "components/offline_pages/background/offliner_policy.h"
@@ -372,6 +373,9 @@ void RequestCoordinator::StartProcessingIfConnected() {
// Makes sure not already busy processing.
if (is_busy_) return;
+ // Make sure we are not on svelte device to start immediately.
+ if (base::SysInfo::IsLowEndDevice()) return;
+
// Check for network connectivity.
net::NetworkChangeNotifier::ConnectionType connection = GetConnectionType();
« 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