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

Unified Diff: android_webview/browser/net/android_stream_reader_url_request_job.cc

Issue 16907002: Update Android to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 | « android_webview/browser/aw_login_delegate.cc ('k') | android_webview/native/aw_http_auth_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/android_stream_reader_url_request_job.cc
diff --git a/android_webview/browser/net/android_stream_reader_url_request_job.cc b/android_webview/browser/net/android_stream_reader_url_request_job.cc
index ae586b8b8235061c2e0947f8d845ad64989be382..0dc659682f2055d1e19d88937e1c98c90c7d34ec 100644
--- a/android_webview/browser/net/android_stream_reader_url_request_job.cc
+++ b/android_webview/browser/net/android_stream_reader_url_request_job.cc
@@ -181,7 +181,7 @@ void AndroidStreamReaderURLRequestJob::OnInputStreamOpened(
CreateStreamReader(input_stream.get()));
DCHECK(input_stream_reader);
- DCHECK(!input_stream_reader_wrapper_);
+ DCHECK(!input_stream_reader_wrapper_.get());
input_stream_reader_wrapper_ = new InputStreamReaderWrapper(
input_stream.Pass(), input_stream_reader.Pass());
@@ -236,7 +236,7 @@ bool AndroidStreamReaderURLRequestJob::ReadRawData(net::IOBuffer* dest,
int dest_size,
int* bytes_read) {
DCHECK(thread_checker_.CalledOnValidThread());
- if (!input_stream_reader_wrapper_) {
+ if (!input_stream_reader_wrapper_.get()) {
// This will happen if opening the InputStream fails in which case the
// error is communicated by setting the HTTP response status header rather
// than failing the request during the header fetch phase.
@@ -265,7 +265,7 @@ bool AndroidStreamReaderURLRequestJob::GetMimeType(
JNIEnv* env = AttachCurrentThread();
DCHECK(env);
- if (!input_stream_reader_wrapper_)
+ if (!input_stream_reader_wrapper_.get())
return false;
// Since it's possible for this call to alter the InputStream a
@@ -281,7 +281,7 @@ bool AndroidStreamReaderURLRequestJob::GetCharset(std::string* charset) {
JNIEnv* env = AttachCurrentThread();
DCHECK(env);
- if (!input_stream_reader_wrapper_)
+ if (!input_stream_reader_wrapper_.get())
return false;
// Since it's possible for this call to alter the InputStream a
« no previous file with comments | « android_webview/browser/aw_login_delegate.cc ('k') | android_webview/native/aw_http_auth_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698