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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/read_file.cc

Issue 301973007: [fsp] Fix crash when reading files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 7 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 | « chrome/browser/chromeos/file_system_provider/operations/read_file.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_system_provider/operations/read_file.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/read_file.cc b/chrome/browser/chromeos/file_system_provider/operations/read_file.cc
index 7dafd4c468ada1d12e82b3f574496690e10db265..5da82b76c9239b154f97455b07330111aa3a4102 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/read_file.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/read_file.cc
@@ -18,7 +18,7 @@ namespace {
// Convert |value| into |output|. If parsing fails, then returns a negative
// value. Otherwise returns number of bytes written to the buffer.
int CopyRequestValueToBuffer(scoped_ptr<RequestValue> value,
- net::IOBuffer* buffer,
+ scoped_refptr<net::IOBuffer> buffer,
int buffer_offset,
int buffer_length) {
using extensions::api::file_system_provider_internal::
@@ -45,7 +45,7 @@ ReadFile::ReadFile(
extensions::EventRouter* event_router,
const ProvidedFileSystemInfo& file_system_info,
int file_handle,
- net::IOBuffer* buffer,
+ scoped_refptr<net::IOBuffer> buffer,
int64 offset,
int length,
const ProvidedFileSystemInterface::ReadChunkReceivedCallback& callback)
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/operations/read_file.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698