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

Unified Diff: chrome/browser/safe_browsing/threat_details_cache.cc

Issue 2821193005: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/safe_browsing (Closed)
Patch Set: 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
Index: chrome/browser/safe_browsing/threat_details_cache.cc
diff --git a/chrome/browser/safe_browsing/threat_details_cache.cc b/chrome/browser/safe_browsing/threat_details_cache.cc
index b5eff141865c3cfa0b5f9cf6aab4e564458269c3..071bc9ef5c6c54267cd5ddb175a58fd2d3ed046f 100644
--- a/chrome/browser/safe_browsing/threat_details_cache.cc
+++ b/chrome/browser/safe_browsing/threat_details_cache.cc
@@ -54,7 +54,7 @@ void ThreatDetailsCacheCollector::StartCacheCollection(
// check if we call their callback immediately.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&ThreatDetailsCacheCollector::OpenEntry, this));
+ base::BindOnce(&ThreatDetailsCacheCollector::OpenEntry, this));
}
bool ThreatDetailsCacheCollector::HasStarted() {
@@ -228,7 +228,7 @@ void ThreatDetailsCacheCollector::AdvanceEntry() {
// Create a task so we don't take over the IO thread for too long.
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&ThreatDetailsCacheCollector::OpenEntry, this));
+ base::BindOnce(&ThreatDetailsCacheCollector::OpenEntry, this));
}
void ThreatDetailsCacheCollector::AllDone(bool success) {
« no previous file with comments | « chrome/browser/safe_browsing/threat_details.cc ('k') | chrome/browser/safe_browsing/threat_details_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698