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

Unified Diff: chrome/browser/safe_browsing/sandboxed_zip_analyzer.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/sandboxed_zip_analyzer.cc
diff --git a/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc b/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
index 91ecc54473fccd8100a24aba7c19db633e19c938..a456507c9f8624b80af28a74ee6051d26373d8ce 100644
--- a/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
+++ b/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
@@ -32,7 +32,7 @@ void SandboxedZipAnalyzer::Start() {
.WithPriority(base::TaskPriority::BACKGROUND)
.WithShutdownBehavior(
base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN),
- base::Bind(&SandboxedZipAnalyzer::PrepareFileToAnalyze, this));
+ base::BindOnce(&SandboxedZipAnalyzer::PrepareFileToAnalyze, this));
}
SandboxedZipAnalyzer::~SandboxedZipAnalyzer() = default;
@@ -63,15 +63,15 @@ void SandboxedZipAnalyzer::PrepareFileToAnalyze() {
content::BrowserThread::PostTask(
content::BrowserThread::UI, FROM_HERE,
- base::Bind(&SandboxedZipAnalyzer::AnalyzeFile, this, base::Passed(&file),
- base::Passed(&temp_file)));
+ base::BindOnce(&SandboxedZipAnalyzer::AnalyzeFile, this,
+ base::Passed(&file), base::Passed(&temp_file)));
}
void SandboxedZipAnalyzer::ReportFileFailure() {
DCHECK(!utility_process_mojo_client_);
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
- base::Bind(callback_, Results()));
+ base::BindOnce(callback_, Results()));
}
void SandboxedZipAnalyzer::AnalyzeFile(base::File file, base::File temp_file) {

Powered by Google App Engine
This is Rietveld 408576698