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

Unified Diff: content/browser/indexed_db/indexed_db_internals_ui.cc

Issue 114193009: [Download] Return DownloadInterruptReason from OnStartedCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/indexed_db/indexed_db_internals_ui.cc
diff --git a/content/browser/indexed_db/indexed_db_internals_ui.cc b/content/browser/indexed_db/indexed_db_internals_ui.cc
index 2b60c550486fbe01739605a9c61821c04f8d9ee5..1a4046a4b005e3f539eee0429948cb4dd279d40b 100644
--- a/content/browser/indexed_db/indexed_db_internals_ui.cc
+++ b/content/browser/indexed_db/indexed_db_internals_ui.cc
@@ -338,11 +338,11 @@ void IndexedDBInternalsUI::OnDownloadStarted(
const base::FilePath& temp_path,
size_t connection_count,
DownloadItem* item,
- net::Error error) {
+ DownloadInterruptReason interrupt_reason) {
- if (error != net::OK) {
- LOG(ERROR)
- << "Error downloading database dump: " << net::ErrorToString(error);
+ if (interrupt_reason != DOWNLOAD_INTERRUPT_REASON_NONE) {
+ LOG(ERROR) << "Error downloading database dump: "
+ << DownloadInterruptReasonToString(interrupt_reason);
return;
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.h ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698