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

Unified Diff: components/previews/core/previews_black_list.cc

Issue 2397783004: Queued ClearBlackList() shouldn't use weak pointer. (Closed)
Patch Set: Created 4 years, 2 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/previews/core/previews_black_list.cc
diff --git a/components/previews/core/previews_black_list.cc b/components/previews/core/previews_black_list.cc
index fd1afed3b0ad23b33e14584d4e4fb0188546e89e..b391e04e571a1177466ac91d673230ecdb4e3903 100644
--- a/components/previews/core/previews_black_list.cc
+++ b/components/previews/core/previews_black_list.cc
@@ -89,8 +89,7 @@ void PreviewsBlackList::ClearBlackList(base::Time begin_time,
ClearBlackListSync(begin_time, end_time);
} else {
QueuePendingTask(base::Bind(&PreviewsBlackList::ClearBlackListSync,
- weak_factory_.GetWeakPtr(), begin_time,
- end_time));
+ base::Unretained(this), begin_time, end_time));
}
}
« 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