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

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

Issue 9639001: Move download interrupt reasons to content\public (the enum that's used by chrome). The rest keep i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 8 years, 9 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 | « chrome/browser/DEPS ('k') | chrome/browser/download/download_extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_browsertest.cc
===================================================================
--- chrome/browser/download/download_browsertest.cc (revision 125463)
+++ chrome/browser/download/download_browsertest.cc (working copy)
@@ -302,7 +302,8 @@
struct DownloadInfo {
const char* url_name; // URL for the download.
DownloadMethod download_method; // Navigation or Direct.
- InterruptReason reason; // Download interrupt reason (NONE is OK).
+ // Download interrupt reason (NONE is OK).
+ content::DownloadInterruptReason reason;
bool show_download_item; // True if the download item appears on the shelf.
};
@@ -697,7 +698,7 @@
new DownloadTestObserver(
download_manager,
1,
- download_info.reason == DOWNLOAD_INTERRUPT_REASON_NONE ?
+ download_info.reason == content::DOWNLOAD_INTERRUPT_REASON_NONE ?
DownloadItem::COMPLETE : // Really done
DownloadItem::INTERRUPTED,
true, // Bail on select file
@@ -2008,7 +2009,7 @@
DownloadInfo download_info = {
"a_zip_file.zip",
DOWNLOAD_NAVIGATE,
- DOWNLOAD_INTERRUPT_REASON_NONE,
+ content::DOWNLOAD_INTERRUPT_REASON_NONE,
true
};
@@ -2021,7 +2022,7 @@
DownloadInfo download_info = {
"a_zip_file.zip",
DOWNLOAD_DIRECT,
- DOWNLOAD_INTERRUPT_REASON_NONE,
+ content::DOWNLOAD_INTERRUPT_REASON_NONE,
true
};
@@ -2034,7 +2035,7 @@
DownloadInfo download_info = {
"there_IS_no_spoon.zip",
DOWNLOAD_DIRECT,
- DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT,
+ content::DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT,
true
};
@@ -2047,7 +2048,7 @@
DownloadInfo download_info = {
"there_IS_no_spoon.zip",
DOWNLOAD_NAVIGATE,
- DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT,
+ content::DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT,
false
};
@@ -2060,7 +2061,7 @@
DownloadInfo download_info = {
"zip_file_not_found.zip",
DOWNLOAD_DIRECT,
- DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED,
+ content::DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED,
true
};
@@ -2073,7 +2074,7 @@
DownloadInfo download_info = {
"zip_file_not_found.zip",
DOWNLOAD_NAVIGATE,
- DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED,
+ content::DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED,
false
};
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/download/download_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698