Index: components/ntp_snippets/remote/remote_suggestions_scheduler.h |
diff --git a/components/ntp_snippets/remote/remote_suggestions_scheduler.h b/components/ntp_snippets/remote/remote_suggestions_scheduler.h |
index 953592ae461dce70fdfd2e9a78a89e0511ece865..06a2be7f13111eb554b4364299c702b21fbe4f3e 100644 |
--- a/components/ntp_snippets/remote/remote_suggestions_scheduler.h |
+++ b/components/ntp_snippets/remote/remote_suggestions_scheduler.h |
@@ -13,7 +13,11 @@ namespace ntp_snippets { |
class RemoteSuggestionsScheduler { |
public: |
// External triggers to consider fetching content suggestions. |
- virtual void OnBrowserStartup() = 0; |
+ // Called whenever we open or return to an Activity. |
tschumann
2017/01/03 15:24:00
can we be more specific? e.g.
// Called whenever
Michael van Ouwerkerk
2017/01/03 16:51:08
You can ask the activity whether it had a warm sta
fhorschig
2017/01/04 10:17:04
Only a little more specific. This comment has to a
tschumann
2017/01/04 10:51:53
I'm leaning towards not doing anything on cold sta
jkrcal
2017/01/04 12:21:12
Tim, do you mean
- having just the warm-start si
tschumann
2017/01/04 12:26:30
i'm leaning towards just the warm-start as I can't
fhorschig
2017/01/04 12:56:10
I added both signals as this makes it easier to dr
|
+ // To keep start ups fast, defer heavy work. |
+ virtual void OnBrowserResumed() = 0; |
+ // Called whenever a new NTP is opened. This may be called on cold starts. |
+ // So to keep start ups fast, defer heavy work for cold starts. |
virtual void OnNTPOpened() = 0; |
// Fetch content suggestions. |