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

Unified Diff: components/offline_pages/background/offliner_policy.h

Issue 2191733004: [Offline Pages] Configure for no retries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/background/offliner_policy.h
diff --git a/components/offline_pages/background/offliner_policy.h b/components/offline_pages/background/offliner_policy.h
index d20af24d481952ff99846e077bea06549492d46f..5a6591aec46621559a02c1d8e5fbbe9dba42a865 100644
--- a/components/offline_pages/background/offliner_policy.h
+++ b/components/offline_pages/background/offliner_policy.h
@@ -6,7 +6,7 @@
#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_H_
namespace {
-const int kMaxRetries = 2;
+const int kMaxTries = 1;
const int kBackgroundProcessingTimeBudgetSeconds = 170;
const int kSinglePageTimeLimitSeconds = 120;
const int kMinimumBatteryPercentageForNonUserRequestOfflining = 50;
@@ -22,7 +22,7 @@ class OfflinerPolicy {
OfflinerPolicy()
: prefer_untried_requests_(false),
prefer_earlier_requests_(true),
- retry_count_is_more_important_than_recency_(true) {}
+ retry_count_is_more_important_than_recency_(false) {}
OfflinerPolicy(bool prefer_untried,
bool prefer_earlier,
@@ -49,7 +49,7 @@ class OfflinerPolicy {
}
// The max number of times we will retry a request.
- int GetMaxRetries() const { return kMaxRetries; }
+ int GetMaxTries() const { return kMaxTries; }
bool PowerRequiredForUserRequestedPage() const { return false; }
« no previous file with comments | « no previous file | components/offline_pages/background/request_coordinator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698