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

Unified Diff: content/browser/download/download_item_impl.cc

Issue 10805020: Kill DownloadItem::IsOtr() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years, 5 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
Index: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index e7eb3f337a365854ab528e10ebddc698dfc5871f..b1935968eccb77e2bf16aea41174cea78ff7c4c2 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -171,7 +171,6 @@ DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate,
safety_state_(SAFE),
auto_opened_(false),
is_persisted_(true),
- is_otr_(false),
is_temporary_(false),
all_data_saved_(false),
opened_(info.opened),
@@ -193,7 +192,6 @@ DownloadItemImpl::DownloadItemImpl(
DownloadItemImplDelegate* delegate,
const DownloadCreateInfo& info,
scoped_ptr<DownloadRequestHandleInterface> request_handle,
- bool is_otr,
const net::BoundNetLog& bound_net_log)
: request_handle_(request_handle.Pass()),
download_id_(info.download_id),
@@ -227,7 +225,6 @@ DownloadItemImpl::DownloadItemImpl(
safety_state_(SAFE),
auto_opened_(false),
is_persisted_(false),
- is_otr_(is_otr),
is_temporary_(!info.save_info.file_path.empty()),
all_data_saved_(false),
opened_(false),
@@ -253,7 +250,6 @@ DownloadItemImpl::DownloadItemImpl(
DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate,
const FilePath& path,
const GURL& url,
- bool is_otr,
DownloadId download_id,
const std::string& mime_type,
const net::BoundNetLog& bound_net_log)
@@ -284,7 +280,6 @@ DownloadItemImpl::DownloadItemImpl(DownloadItemImplDelegate* delegate,
safety_state_(SAFE),
auto_opened_(false),
is_persisted_(false),
- is_otr_(is_otr),
is_temporary_(false),
all_data_saved_(false),
opened_(false),
@@ -1041,7 +1036,6 @@ std::string DownloadItemImpl::DebugString(bool verbose) const {
" received = %" PRId64
" reason = %s"
" paused = %c"
- " otr = %c"
" safety = %s"
" last_modified = '%s'"
" etag = '%s'"
@@ -1053,7 +1047,6 @@ std::string DownloadItemImpl::DebugString(bool verbose) const {
GetReceivedBytes(),
InterruptReasonDebugString(last_reason_).c_str(),
IsPaused() ? 'T' : 'F',
- IsOtr() ? 'T' : 'F',
DebugSafetyStateString(GetSafetyState()),
GetLastModifiedTime().c_str(),
GetETag().c_str(),
@@ -1140,7 +1133,6 @@ bool DownloadItemImpl::GetFileExternallyRemoved() const {
DownloadItem::SafetyState DownloadItemImpl::GetSafetyState() const {
return safety_state_;
}
-bool DownloadItemImpl::IsOtr() const { return is_otr_; }
bool DownloadItemImpl::GetAutoOpened() { return auto_opened_; }
FilePath DownloadItemImpl::GetTargetName() const {
return target_path_.BaseName();

Powered by Google App Engine
This is Rietveld 408576698