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

Unified Diff: chrome/browser/extensions/zipfile_installer.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (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/extensions/zipfile_installer.cc
diff --git a/chrome/browser/extensions/zipfile_installer.cc b/chrome/browser/extensions/zipfile_installer.cc
index d8381369ebb022985020d057505c98b78f438846..7b08e6de96574a8dde29a135b3ed6030f7abdb7f 100644
--- a/chrome/browser/extensions/zipfile_installer.cc
+++ b/chrome/browser/extensions/zipfile_installer.cc
@@ -41,7 +41,7 @@ void ZipFileInstaller::LoadFromZipFile(const base::FilePath& zip_file) {
content::BrowserThread::PostTask(
content::BrowserThread::FILE, FROM_HERE,
- base::Bind(&ZipFileInstaller::PrepareUnzipDir, this, zip_file));
+ base::BindOnce(&ZipFileInstaller::PrepareUnzipDir, this, zip_file));
}
ZipFileInstaller::ZipFileInstaller(ExtensionService* service)
@@ -63,14 +63,14 @@ void ZipFileInstaller::PrepareUnzipDir(const base::FilePath& zip_file) {
if (!base::CreateTemporaryDirInDir(dir_temp, dir_name, &unzip_dir)) {
content::BrowserThread::PostTask(
content::BrowserThread::UI, FROM_HERE,
- base::Bind(&ZipFileInstaller::ReportFailure, this,
- std::string(kExtensionHandlerTempDirError)));
+ base::BindOnce(&ZipFileInstaller::ReportFailure, this,
+ std::string(kExtensionHandlerTempDirError)));
return;
}
content::BrowserThread::PostTask(
content::BrowserThread::UI, FROM_HERE,
- base::Bind(&ZipFileInstaller::Unzip, this, unzip_dir));
+ base::BindOnce(&ZipFileInstaller::Unzip, this, unzip_dir));
}
void ZipFileInstaller::Unzip(const base::FilePath& unzip_dir) {
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/browser/extensions/zipfile_installer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698