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

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

Issue 2786023002: [Remote suggestions] Remove the unique_ptr wrapper around callbacks (Closed)
Patch Set: Created 3 years, 9 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.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc b/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
index 743969a435c2f3a3b92a1a6a85351fc4a55747da..734b2842cc239190afc406c7e6e87de48eacd394 100644
--- a/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_scheduler_impl.cc
@@ -442,11 +442,9 @@ void RemoteSuggestionsSchedulerImpl::RefetchInTheBackground() {
}
background_fetch_in_progress_ = true;
- provider_->RefetchInTheBackground(
- base::MakeUnique<RemoteSuggestionsProvider::FetchStatusCallback>(
- base::Bind(
- &RemoteSuggestionsSchedulerImpl::RefetchInTheBackgroundFinished,
- base::Unretained(this))));
+ provider_->RefetchInTheBackground(base::Bind(
+ &RemoteSuggestionsSchedulerImpl::RefetchInTheBackgroundFinished,
+ base::Unretained(this)));
}
bool RemoteSuggestionsSchedulerImpl::ShouldRefetchInTheBackgroundNow(

Powered by Google App Engine
This is Rietveld 408576698