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

Unified Diff: base/file_util_proxy.h

Issue 8322009: base::Bind: Convert FileUtilProxy::ReadDirectoryCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_proxy.h
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index 2c15cfa2d56700395f90199269fc7e09b0a3bc23..306d2e46f83dd03be5a80c42cbab397c5f10ecba 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -50,8 +50,8 @@ class BASE_EXPORT FileUtilProxy {
typedef base::Callback<void(PlatformFileError /* error code */,
const PlatformFileInfo& /* file_info */)>
GetFileInfoCallback;
- typedef Callback2<PlatformFileError /* error code */,
- const std::vector<Entry>&>::Type ReadDirectoryCallback;
+ typedef base::Callback<void(PlatformFileError /* error code */,
+ const std::vector<Entry>&)> ReadDirectoryCallback;
typedef Callback3<PlatformFileError /* error code */,
const char* /* data */,
int /* bytes read/written */>::Type ReadCallback;
@@ -115,7 +115,7 @@ class BASE_EXPORT FileUtilProxy {
static bool ReadDirectory(scoped_refptr<MessageLoopProxy> message_loop_proxy,
const FilePath& file_path,
- ReadDirectoryCallback* callback);
+ const ReadDirectoryCallback& callback);
// Creates directory at given path. It's an error to create
// if |exclusive| is true and dir already exists.
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698