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

Unified Diff: base/files/file_util_proxy.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (Closed)
Patch Set: Created 3 years, 9 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: base/files/file_util_proxy.cc
diff --git a/base/files/file_util_proxy.cc b/base/files/file_util_proxy.cc
index 54a56610630ec77d93d5e9d1635baa9c8f893b53..dc39a654ed4ee4789684f1dd16e79e5bde34df51 100644
--- a/base/files/file_util_proxy.cc
+++ b/base/files/file_util_proxy.cc
@@ -59,9 +59,9 @@ bool FileUtilProxy::GetFileInfo(
GetFileInfoHelper* helper = new GetFileInfoHelper;
return task_runner->PostTaskAndReply(
FROM_HERE,
- Bind(&GetFileInfoHelper::RunWorkForFilePath,
- Unretained(helper), file_path),
- Bind(&GetFileInfoHelper::Reply, Owned(helper), callback));
+ BindOnce(&GetFileInfoHelper::RunWorkForFilePath, Unretained(helper),
+ file_path),
+ BindOnce(&GetFileInfoHelper::Reply, Owned(helper), callback));
}
// static

Powered by Google App Engine
This is Rietveld 408576698