| Index: components/cronet/android/java/src/org/chromium/net/urlconnection/CronetFixedModeOutputStream.java
|
| diff --git a/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetFixedModeOutputStream.java b/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetFixedModeOutputStream.java
|
| index 6f83f0022c053c5193e85b3fdcaf92264a55da81..8342c32dd0dcdde69ee87708a8213f03d0715424 100644
|
| --- a/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetFixedModeOutputStream.java
|
| +++ b/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetFixedModeOutputStream.java
|
| @@ -73,6 +73,7 @@ final class CronetFixedModeOutputStream extends CronetOutputStream {
|
|
|
| @Override
|
| public void write(int oneByte) throws IOException {
|
| + super.write(oneByte);
|
| checkNotExceedContentLength(1);
|
| ensureBufferHasRemaining();
|
| mBuffer.put((byte) oneByte);
|
| @@ -82,6 +83,7 @@ final class CronetFixedModeOutputStream extends CronetOutputStream {
|
|
|
| @Override
|
| public void write(byte[] buffer, int offset, int count) throws IOException {
|
| + super.write(buffer, offset, count);
|
| if (buffer.length - offset < count || offset < 0 || count < 0) {
|
| throw new IndexOutOfBoundsException();
|
| }
|
| @@ -126,6 +128,7 @@ final class CronetFixedModeOutputStream extends CronetOutputStream {
|
| * write more data.
|
| */
|
| private void uploadBufferInternal() throws IOException {
|
| + checkNotClosed();
|
| mBuffer.flip();
|
| mMessageLoop.loop();
|
| }
|
| @@ -142,8 +145,6 @@ final class CronetFixedModeOutputStream extends CronetOutputStream {
|
| }
|
| }
|
|
|
| - // TODO(xunjieli): implement close().
|
| -
|
| // Below are CronetOutputStream implementations:
|
|
|
| @Override
|
|
|