| Index: chrome/browser/extensions/webstore_installer.cc
|
| diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc
|
| index 9ebf8f7838b99c729a1e5ec4d843be579bd53827..85682f07e87f251cc1ccfdbbce5bae19915d7a50 100644
|
| --- a/chrome/browser/extensions/webstore_installer.cc
|
| +++ b/chrome/browser/extensions/webstore_installer.cc
|
| @@ -313,14 +313,16 @@ WebstoreInstaller::~WebstoreInstaller() {
|
| }
|
|
|
| void WebstoreInstaller::OnDownloadStarted(
|
| - DownloadItem* item, net::Error error) {
|
| + DownloadItem* item,
|
| + content::DownloadInterruptReason interrupt_reason) {
|
| if (!item) {
|
| - DCHECK_NE(net::OK, error);
|
| - ReportFailure(net::ErrorToString(error), FAILURE_REASON_OTHER);
|
| + DCHECK_NE(content::DOWNLOAD_INTERRUPT_REASON_NONE, interrupt_reason);
|
| + ReportFailure(content::DownloadInterruptReasonToString(interrupt_reason),
|
| + FAILURE_REASON_OTHER);
|
| return;
|
| }
|
|
|
| - DCHECK_EQ(net::OK, error);
|
| + DCHECK_EQ(content::DOWNLOAD_INTERRUPT_REASON_NONE, interrupt_reason);
|
| download_item_ = item;
|
| download_item_->AddObserver(this);
|
| if (approval_)
|
|
|