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

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

Issue 2485933003: Fixes an invalidated pointer access in NTPSnipppetsFetcher. (Closed)
Patch Set: adressed other comments from https://codereview.chromium.org/2473483006/ Created 4 years, 1 month 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/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_service.cc b/components/ntp_snippets/remote/ntp_snippets_service.cc
index d08e6641e413e7b632c0c509f3ac4f3f8cd2557e..6ce50e93619fc53a351c652f8903d96ac534cd11 100644
--- a/components/ntp_snippets/remote/ntp_snippets_service.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_service.cc
@@ -331,7 +331,7 @@ void NTPSnippetsService::FetchSnippetsFromHosts(
void NTPSnippetsService::Fetch(
const Category& category,
const std::set<std::string>& known_suggestion_ids,
- FetchingCallback callback) {
+ const FetchingCallback& callback) {
if (!ready()) {
CallWithEmptyResults(callback);
return;

Powered by Google App Engine
This is Rietveld 408576698