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

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

Issue 1517283002: Use a test BrowserContext in DownloadItemImpl unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarify what we are testing. Created 5 years 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 | « no previous file | content/browser/download/download_item_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0dd72a208e0519724a8092ed27e60b7473f6c22d..a5dfaec1af2ac84f009d4745667178900c7bb220 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -1698,12 +1698,10 @@ void DownloadItemImpl::ResumeInterruptedDownload() {
if (GetWebContents()) {
download_params = DownloadUrlParameters::FromWebContents(GetWebContents(),
GetOriginalUrl());
- } else if (GetBrowserContext()) {
+ } else {
download_params = make_scoped_ptr(
new DownloadUrlParameters(GetOriginalUrl(), -1, -1, -1,
GetBrowserContext()->GetResourceContext()));
- } else {
- return;
}
download_params->set_file_path(GetFullPath());
« no previous file with comments | « no previous file | content/browser/download/download_item_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698