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

Unified Diff: chrome/browser/extensions/api/messaging/native_message_process_host.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_message_process_host.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host.cc b/chrome/browser/extensions/api/messaging/native_message_process_host.cc
index bf2c37cfaf1b45e94ce1e6b17a224aa731c0c223..1974d6abb78f694f5f2143e4af2324ba841eb322 100644
--- a/chrome/browser/extensions/api/messaging/native_message_process_host.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host.cc
@@ -191,9 +191,8 @@ void NativeMessageProcessHost::Start(Client* client) {
// It's safe to use base::Unretained() here because NativeMessagePort always
// deletes us on the IO thread.
task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&NativeMessageProcessHost::LaunchHostProcess,
- weak_factory_.GetWeakPtr()));
+ FROM_HERE, base::BindOnce(&NativeMessageProcessHost::LaunchHostProcess,
+ weak_factory_.GetWeakPtr()));
}
scoped_refptr<base::SingleThreadTaskRunner>

Powered by Google App Engine
This is Rietveld 408576698