| Index: components/cronet/android/test/test_upload_data_stream_handler.h
|
| diff --git a/components/cronet/android/test/test_upload_data_stream_handler.h b/components/cronet/android/test/test_upload_data_stream_handler.h
|
| index 65ec29c45f76a8673fed6c139baf46d0fcb94c76..fb09e32d587f3c042e1fe236038e1b336cb33c16 100644
|
| --- a/components/cronet/android/test/test_upload_data_stream_handler.h
|
| +++ b/components/cronet/android/test/test_upload_data_stream_handler.h
|
| @@ -12,7 +12,6 @@
|
| #include "base/android/scoped_java_ref.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "base/threading/thread.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/base/upload_data_stream.h"
|
|
|
| @@ -27,7 +26,8 @@ class TestUploadDataStreamHandler {
|
| TestUploadDataStreamHandler(
|
| std::unique_ptr<net::UploadDataStream> upload_data_stream,
|
| JNIEnv* env,
|
| - jobject jtest_upload_data_stream_handler);
|
| + jobject jtest_upload_data_stream_handler,
|
| + jlong jsingle_thread_task_runner);
|
|
|
| ~TestUploadDataStreamHandler();
|
|
|
| @@ -86,7 +86,7 @@ class TestUploadDataStreamHandler {
|
|
|
| // Created and destroyed on the same Java thread. This is where methods of
|
| // net::UploadDataStream run on.
|
| - std::unique_ptr<base::Thread> network_thread_;
|
| + base::SingleThreadTaskRunner* network_thread_;
|
| // Created on a Java thread. Accessed only on |network_thread_|.
|
| std::unique_ptr<net::UploadDataStream> upload_data_stream_;
|
| // Created and accessed only on |network_thread_|.
|
|
|