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

Unified Diff: content/browser/download/base_file.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/devtools/devtools_protocol.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.cc
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
index 0b1db97c93a54c22fb139214ce7a170d5c4e1d65..687c321c9c8d212d983b4492399ef8de41a0ad80 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -67,7 +67,7 @@ DownloadInterruptReason BaseFile::Initialize(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
DCHECK(!detached_);
- if (file_stream_.get()) {
+ if (file_stream_) {
file_stream_->SetBoundNetLogSource(bound_net_log_);
file_stream_->EnableErrorStatistics();
}
@@ -103,7 +103,7 @@ DownloadInterruptReason BaseFile::AppendDataToFile(const char* data,
if (detached_)
RecordDownloadCount(APPEND_TO_DETACHED_FILE_COUNT);
- if (!file_stream_.get())
+ if (!file_stream_)
return LogInterruptReason("No file stream on append", 0,
DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
@@ -274,7 +274,7 @@ DownloadInterruptReason BaseFile::Open() {
base::Bind(&FileOpenedNetLogCallback, &full_path_, bytes_so_far_));
// Create a new file stream if it is not provided.
- if (!file_stream_.get()) {
+ if (!file_stream_) {
CreateFileStream();
file_stream_->EnableErrorStatistics();
int open_result = file_stream_->OpenSync(
@@ -322,7 +322,7 @@ void BaseFile::Close() {
bound_net_log_.AddEvent(net::NetLog::TYPE_DOWNLOAD_FILE_CLOSED);
- if (file_stream_.get()) {
+ if (file_stream_) {
#if defined(OS_CHROMEOS)
// Currently we don't really care about the return value, since if it fails
// theres not much we can do. But we might in the future.
« no previous file with comments | « content/browser/devtools/devtools_protocol.cc ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698