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

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

Issue 2535723005: Stop using ResourceController in ResourceThrottle (Closed)
Patch Set: Addressed #62 Created 4 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
Index: chrome/browser/download/download_resource_throttle.cc
diff --git a/chrome/browser/download/download_resource_throttle.cc b/chrome/browser/download/download_resource_throttle.cc
index 68c4bae609f81b48560e5b06fb9f3c5923858233..1bbd3b3bfce418bbdb726812f08bb65a36223506 100644
--- a/chrome/browser/download/download_resource_throttle.cc
+++ b/chrome/browser/download/download_resource_throttle.cc
@@ -10,7 +10,6 @@
#include "build/build_config.h"
#include "chrome/browser/download/download_stats.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/resource_controller.h"
#if defined(OS_ANDROID)
#include "chrome/browser/android/download/download_controller_base.h"
@@ -130,7 +129,7 @@ void DownloadResourceThrottle::WillDownload(bool* defer) {
}
if (!request_allowed_)
- controller()->Cancel();
+ Cancel();
}
void DownloadResourceThrottle::ContinueDownload(bool allow) {
@@ -149,9 +148,9 @@ void DownloadResourceThrottle::ContinueDownload(bool allow) {
if (request_deferred_) {
request_deferred_ = false;
if (allow) {
- controller()->Resume();
+ Resume();
} else {
- controller()->Cancel();
+ Cancel();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698