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

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

Issue 2699613002: [remote suggestions] Add separte fetch interval for NTP open trigger (Closed)
Patch Set: ' Created 3 years, 10 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/scheduling_remote_suggestions_provider.h
diff --git a/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h b/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h
index 7a42b470380d3f19fd62a980ab963c62045d6e47..1a41aebeaa3d9cf32f90ba64e57c7234057a6df8 100644
--- a/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h
+++ b/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h
@@ -114,6 +114,7 @@ class SchedulingRemoteSuggestionsProvider final
base::TimeDelta interval_persistent_wifi;
base::TimeDelta interval_persistent_fallback;
base::TimeDelta interval_soft_on_usage_event;
+ base::TimeDelta interval_ntp_open;
jkrcal 2017/02/15 16:35:34 nit: can it be soft_on_ntp_opened? (opened to mak
markusheintz_ 2017/02/15 21:19:29 soft_on_ntp_opened SGTM. Name updated.
};
enum class TriggerType;
@@ -137,7 +138,7 @@ class SchedulingRemoteSuggestionsProvider final
// Checks whether it is time to perform a soft background fetch, according to
// |schedule|.
- bool ShouldRefetchInTheBackgroundNow();
+ bool ShouldRefetchInTheBackgroundNow(TriggerType trigger);
// Returns whether background fetching (for the given |trigger|) is disabled.
bool BackgroundFetchesDisabled(TriggerType trigger) const;

Powered by Google App Engine
This is Rietveld 408576698