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

Unified Diff: components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc

Issue 893003002: Data Reduction Proxy class ownership updates and Settings cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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: components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc
diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc
index 60d31bcd4882afdbd584fd5ac35e7c995f7e36a5..f7bdb96c7fb380663e13077b22656cb3934058a0 100644
--- a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc
+++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc
@@ -4,6 +4,7 @@
#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
@@ -30,13 +31,12 @@ DataReductionProxyDebugResourceThrottle::MaybeCreate(
if (io_data && io_data->IsEnabled() &&
data_reduction_proxy::DataReductionProxyParams::
WarnIfNoDataReductionProxy()) {
- DCHECK(io_data->params());
DCHECK(io_data->debug_ui_service());
DCHECK(request);
return scoped_ptr<DataReductionProxyDebugResourceThrottle>(
- new DataReductionProxyDebugResourceThrottle(request, resource_type,
- io_data->debug_ui_service(),
- io_data->params()));
+ new DataReductionProxyDebugResourceThrottle(
+ request, resource_type, io_data->debug_ui_service(),
+ io_data->config()->params()));
}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698