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

Unified Diff: chrome/browser/safe_browsing/ui_manager.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/ui_manager.cc
diff --git a/chrome/browser/safe_browsing/ui_manager.cc b/chrome/browser/safe_browsing/ui_manager.cc
index f20caf341cf60bea7d0a8478047e44b4ddcf1bbe..99b1c30a0bd4c1c5f19f9a80358f845fa110aaeb 100644
--- a/chrome/browser/safe_browsing/ui_manager.cc
+++ b/chrome/browser/safe_browsing/ui_manager.cc
@@ -114,8 +114,8 @@ void SafeBrowsingUIManager::MaybeReportSafeBrowsingHit(
if (hit_report.extended_reporting_level != SBER_LEVEL_OFF) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingUIManager::ReportSafeBrowsingHitOnIOThread,
- this, hit_report));
+ base::BindOnce(&SafeBrowsingUIManager::ReportSafeBrowsingHitOnIOThread,
+ this, hit_report));
}
}
@@ -139,8 +139,8 @@ void SafeBrowsingUIManager::ReportPermissionAction(
DCHECK_CURRENTLY_ON(BrowserThread::UI);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&SafeBrowsingUIManager::ReportPermissionActionOnIOThread, this,
- report_info));
+ base::BindOnce(&SafeBrowsingUIManager::ReportPermissionActionOnIOThread,
+ this, report_info));
}
// Static.
« no previous file with comments | « chrome/browser/safe_browsing/threat_details_unittest.cc ('k') | chrome/browser/safe_browsing/ui_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698