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

Unified Diff: chrome/browser/download/download_browsertest.cc

Issue 511483002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/download/ (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_browsertest.cc
diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc
index 078331a87b3be7d506bae89ca6dcda92396ca967..c5b4001bfb24d24aac368a586a4dae4d7a066eee 100644
--- a/chrome/browser/download/download_browsertest.cc
+++ b/chrome/browser/download/download_browsertest.cc
@@ -3192,8 +3192,7 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, Resumption_NoPrompt) {
EnableFileChooser(true);
DownloadItem* download = StartMockDownloadAndInjectError(
- error_injector,
- content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
+ error_injector.get(), content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
ASSERT_TRUE(download);
download->Resume();
@@ -3218,8 +3217,7 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, Resumption_WithPrompt) {
EnableFileChooser(true);
DownloadItem* download = StartMockDownloadAndInjectError(
- error_injector,
- content::DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE);
+ error_injector.get(), content::DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE);
ASSERT_TRUE(download);
download->Resume();
@@ -3245,8 +3243,7 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, Resumption_WithPromptAlways) {
EnableFileChooser(true);
DownloadItem* download = StartMockDownloadAndInjectError(
- error_injector,
- content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
+ error_injector.get(), content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
ASSERT_TRUE(download);
// Prompts the user initially because of the kPromptForDownload preference.
@@ -3271,7 +3268,7 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, Resumption_Automatic) {
DownloadManagerForBrowser(browser())));
DownloadItem* download = StartMockDownloadAndInjectError(
- error_injector,
+ error_injector.get(),
content::DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR);
ASSERT_TRUE(download);
@@ -3299,8 +3296,7 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, Resumption_MultipleAttempts) {
EnableFileChooser(true);
DownloadItem* download = StartMockDownloadAndInjectError(
- error_injector,
- content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
+ error_injector.get(), content::DOWNLOAD_INTERRUPT_REASON_FILE_FAILED);
ASSERT_TRUE(download);
content::TestFileErrorInjector::FileErrorInfo error_info;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698