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

Unified Diff: chrome/browser/extensions/webstore_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
« no previous file with comments | « chrome/browser/extensions/user_script_listener.cc ('k') | chrome/browser/extensions/zipfile_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_installer.cc
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc
index 3735ec6ab84cb98c6a82fd46cb00b974510361fe..75320e06cb3a55b4c006e7f3b6a6cb63c1df4dd0 100644
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -118,7 +118,7 @@ void GetDownloadFilePath(
if (!base::DirectoryExists(download_directory)) {
if (!base::CreateDirectory(download_directory)) {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- base::Bind(callback, base::FilePath()));
+ base::BindOnce(callback, base::FilePath()));
return;
}
}
@@ -141,7 +141,7 @@ void GetDownloadFilePath(
}
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- base::Bind(callback, file));
+ base::BindOnce(callback, file));
}
void MaybeAppendAuthUserParameter(const std::string& authuser, GURL* url) {
@@ -602,8 +602,9 @@ void WebstoreInstaller::DownloadCrx(
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- base::Bind(&GetDownloadFilePath, download_directory, extension_id,
- base::Bind(&WebstoreInstaller::StartDownload, this, extension_id)));
+ base::BindOnce(
+ &GetDownloadFilePath, download_directory, extension_id,
+ base::Bind(&WebstoreInstaller::StartDownload, this, extension_id)));
}
// http://crbug.com/165634
« no previous file with comments | « chrome/browser/extensions/user_script_listener.cc ('k') | chrome/browser/extensions/zipfile_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698