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

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

Issue 2817903003: [Remote scheduler] Make sure we fetch after EULA accepted (Closed)
Patch Set: Marc's comment 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc b/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
index 699c3b5a246cbceafee6b7c8c5cd0355eb9bd183..e83531a65f9e76002db273dcfda3151963f531ac 100644
--- a/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
@@ -174,8 +174,10 @@ class EulaState : public web_resource::EulaAcceptedNotifier::Observer {
// EulaAcceptedNotifier::Observer implementation.
void OnEulaAccepted() override {
- // Emulate a browser foregrounded event.
- scheduler_->OnBrowserForegrounded();
+ // Emulate a persistent fetch - we really want to fetch, initially!
+ // TODO(jkrcal): Find a cleaner solution. This is somewhat hacky and can
+ // mess up with metrics.
+ scheduler_->OnPersistentSchedulerWakeUp();
}
private:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698