Index: chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc b/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc |
index 855651e07df6c0ea0734a811abbceffbcd2a0c16..51d1f5b362ef0fd7397c00512d56fa558469691b 100644 |
--- a/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc |
+++ b/chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc |
@@ -61,10 +61,10 @@ class FileStreamReader::OperationRunner |
callback))); |
} |
- // Requests reading contents of a file. In case of either success or a failure |
- // |callback| is executed. It can be called many times, until |has_more| is |
- // set to false. This function guarantees that it will succeed only if the |
- // file has not been changed while reading. Must be called on UI thread. |
+ // Requests reading contents of a file. |callback| will always run eventually. |
+ // It can be called many times, until |has_more| is set to false. This |
+ // function guarantees that it will succeed only if the file has not been |
+ // changed while reading. Must be called on UI thread. |
void ReadFileOnUIThread( |
scoped_refptr<net::IOBuffer> buffer, |
int64_t offset, |
@@ -92,8 +92,8 @@ class FileStreamReader::OperationRunner |
&OperationRunner::OnReadFileCompletedOnUIThread, this, callback)); |
} |
- // Requests metadata of a file. In case of either succes or a failure, |
- // |callback| is executed. Must be called on UI thread. |
+ // Requests metadata of a file. |callback| will always run eventually. |
+ // Must be called on UI thread. |
void GetMetadataOnUIThread( |
const ProvidedFileSystemInterface::GetMetadataCallback& callback) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |