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

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher.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/api/messaging/native_process_launcher.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
index 0f52fa5c5838238e0fdcf5389270ec0fadc26920..a7a0a822b3e0e754805132076fb8025f98775012 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
@@ -110,8 +110,8 @@ void NativeProcessLauncherImpl::Core::Launch(
base::PostTaskWithTraits(FROM_HERE,
base::TaskTraits().MayBlock().WithPriority(
base::TaskPriority::USER_VISIBLE),
- base::Bind(&Core::DoLaunchOnThreadPool, this, origin,
- native_host_name, callback));
+ base::BindOnce(&Core::DoLaunchOnThreadPool, this,
+ origin, native_host_name, callback));
}
void NativeProcessLauncherImpl::Core::DoLaunchOnThreadPool(
@@ -227,9 +227,9 @@ void NativeProcessLauncherImpl::Core::PostErrorResult(
LaunchResult error) {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&NativeProcessLauncherImpl::Core::CallCallbackOnIOThread, this,
- callback, error, Passed(base::Process()),
- Passed(base::File()), Passed(base::File())));
+ base::BindOnce(&NativeProcessLauncherImpl::Core::CallCallbackOnIOThread,
+ this, callback, error, Passed(base::Process()),
+ Passed(base::File()), Passed(base::File())));
}
void NativeProcessLauncherImpl::Core::PostResult(
@@ -239,9 +239,9 @@ void NativeProcessLauncherImpl::Core::PostResult(
base::File write_file) {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&NativeProcessLauncherImpl::Core::CallCallbackOnIOThread, this,
- callback, RESULT_SUCCESS, Passed(&process),
- Passed(&read_file), Passed(&write_file)));
+ base::BindOnce(&NativeProcessLauncherImpl::Core::CallCallbackOnIOThread,
+ this, callback, RESULT_SUCCESS, Passed(&process),
+ Passed(&read_file), Passed(&write_file)));
}
NativeProcessLauncherImpl::NativeProcessLauncherImpl(

Powered by Google App Engine
This is Rietveld 408576698