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

Unified Diff: components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h

Issue 2794313002: [Remote suggestions] Prioritize wifi for soft fetches. (Closed)
Patch Set: Minor polish Created 3 years, 8 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: components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h
diff --git a/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h b/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h
index a8baaf05af2ae032d04fa97c0a631eba480b3437..a3cb9e9841ebe39ca0f6c042d2c165231c07129d 100644
--- a/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h
+++ b/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h
@@ -70,8 +70,8 @@ class RemoteSuggestionsSchedulerImpl : public RemoteSuggestionsScheduler {
base::TimeDelta interval_persistent_wifi;
base::TimeDelta interval_persistent_fallback;
- base::TimeDelta interval_soft_on_usage_event;
- base::TimeDelta interval_soft_on_ntp_opened;
+ base::TimeDelta interval_soft_wifi;
+ base::TimeDelta interval_soft_fallback;
};
enum class TriggerType;
@@ -94,7 +94,7 @@ class RemoteSuggestionsSchedulerImpl : public RemoteSuggestionsScheduler {
// Checks whether it is time to perform a soft background fetch, according to
// |schedule|.
- bool ShouldRefetchInTheBackgroundNow(TriggerType trigger);
+ bool ShouldRefetchInTheBackgroundNow();
// Returns whether background fetching (for the given |trigger|) is disabled.
bool BackgroundFetchesDisabled(TriggerType trigger) const;

Powered by Google App Engine
This is Rietveld 408576698