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

Unified Diff: content/browser/streams/stream_url_request_job.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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 | « content/browser/speech/speech_recognizer.cc ('k') | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_url_request_job.cc
diff --git a/content/browser/streams/stream_url_request_job.cc b/content/browser/streams/stream_url_request_job.cc
index da2e9ce7b203fe779466584571931bd5a546b6be..8f9460638f0428e6f2440e409d340861f52cfe27 100644
--- a/content/browser/streams/stream_url_request_job.cc
+++ b/content/browser/streams/stream_url_request_job.cc
@@ -117,7 +117,7 @@ bool StreamURLRequestJob::ReadRawData(net::IOBuffer* buf,
}
bool StreamURLRequestJob::GetMimeType(std::string* mime_type) const {
- if (!response_info_.get())
+ if (!response_info_)
return false;
// TODO(zork): Support registered MIME types if needed.
@@ -125,12 +125,12 @@ bool StreamURLRequestJob::GetMimeType(std::string* mime_type) const {
}
void StreamURLRequestJob::GetResponseInfo(net::HttpResponseInfo* info) {
- if (response_info_.get())
+ if (response_info_)
*info = *response_info_;
}
int StreamURLRequestJob::GetResponseCode() const {
- if (!response_info_.get())
+ if (!response_info_)
return -1;
return response_info_->headers->response_code();
« no previous file with comments | « content/browser/speech/speech_recognizer.cc ('k') | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698