Chromium Code Reviews| Index: content/child/fileapi/webfilewriter_base.cc |
| diff --git a/content/child/fileapi/webfilewriter_base.cc b/content/child/fileapi/webfilewriter_base.cc |
| index fd0a2070c49e384a42f0e55683b44fe210db1f29..1a3fc8334013865eed87e8cc92aab64a4457a713 100644 |
| --- a/content/child/fileapi/webfilewriter_base.cc |
| +++ b/content/child/fileapi/webfilewriter_base.cc |
| @@ -35,7 +35,16 @@ void WebFileWriterBase::write(long long position, |
| DCHECK(kOperationNone == operation_); |
| DCHECK(kCancelNotInProgress == cancel_state_); |
| operation_ = kOperationWrite; |
| - DoWrite(path_, blob_url, position); |
| + DoWriteDeprecated(path_, blob_url, position); |
| +} |
| + |
| +void WebFileWriterBase::write( |
| + long long position, |
| + const WebKit::WebString& id) { |
| + DCHECK(kOperationNone == operation_); |
| + DCHECK(kCancelNotInProgress == cancel_state_); |
|
kinuko
2013/08/21 10:22:20
nit: DCHECK_EQ would give better output
michaeln
2013/08/27 23:24:06
Done.
|
| + operation_ = kOperationWrite; |
| + DoWrite(path_, id.utf8(), position); |
| } |
| // When we cancel a write/truncate, we always get back the result of the write |