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

Unified Diff: extensions/browser/extension_protocols.cc

Issue 503873002: Remove implicit conversions from scoped_refptr to T* in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « extensions/browser/extension_function.cc ('k') | extensions/browser/extension_registry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_protocols.cc
diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc
index 87a9e0e80b0d1bf45bd3971d6c961d50d37d1267..e1d7b44a806bcae4c61dab758cd7513d5a8c9a06 100644
--- a/extensions/browser/extension_protocols.cc
+++ b/extensions/browser/extension_protocols.cc
@@ -219,7 +219,7 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
// crbug.com/369895.
std::string range_header;
if (headers.GetHeader(net::HttpRequestHeaders::kRange, &range_header)) {
- if (verify_job_)
+ if (verify_job_.get())
verify_job_ = NULL;
}
URLRequestFileJob::SetExtraRequestHeaders(headers);
@@ -230,7 +230,7 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
seek_position_ = result;
// TODO(asargent) - we'll need to add proper support for range headers.
// crbug.com/369895.
- if (result > 0 && verify_job_)
+ if (result > 0 && verify_job_.get())
verify_job_ = NULL;
}
@@ -242,7 +242,7 @@ class URLRequestExtensionJob : public net::URLRequestFileJob {
-result);
if (result > 0) {
bytes_read_ += result;
- if (verify_job_) {
+ if (verify_job_.get()) {
verify_job_->BytesRead(result, buffer->data());
if (!remaining_bytes())
verify_job_->DoneReading();
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | extensions/browser/extension_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698