diff options
author | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-29 00:57:24 +0000 |
---|---|---|
committer | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-29 00:57:24 +0000 |
commit | b7617c741bb62ec9f60359f7730758410ad33a39 (patch) | |
tree | e3bbbbbf340d7d15ccd00ed90095ae8661347182 /net/base/file_stream_context.cc | |
parent | faf59c40d8f982aacfa8f0e8ab77295cc4fccef6 (diff) | |
download | chromium_src-b7617c741bb62ec9f60359f7730758410ad33a39.zip chromium_src-b7617c741bb62ec9f60359f7730758410ad33a39.tar.gz chromium_src-b7617c741bb62ec9f60359f7730758410ad33a39.tar.bz2 |
Remove some PlatformFile instances from ChromeOS Drive.
BUG=322664
Review URL: https://codereview.chromium.org/211483004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/file_stream_context.cc')
-rw-r--r-- | net/base/file_stream_context.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/base/file_stream_context.cc b/net/base/file_stream_context.cc index 43825e3..5d1fdbb 100644 --- a/net/base/file_stream_context.cc +++ b/net/base/file_stream_context.cc @@ -274,21 +274,16 @@ void FileStream::Context::CloseAndDelete() { DCHECK(!async_in_progress_); if (file_.IsValid()) { - bool posted = task_runner_.get()->PostTaskAndReply( + bool posted = task_runner_.get()->PostTask( FROM_HERE, base::Bind(base::IgnoreResult(&Context::CloseFileImpl), - base::Unretained(this)), - base::Bind(&Context::OnCloseCompleted, base::Unretained(this))); + base::Owned(this))); DCHECK(posted); } else { delete this; } } -void FileStream::Context::OnCloseCompleted() { - delete this; -} - Int64CompletionCallback FileStream::Context::IntToInt64( const CompletionCallback& callback) { return base::Bind(&CallInt64ToInt, callback); |