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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits 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: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
index d4e4dd9b1d79bcd2313f8ab92ffdecc6344ea54b..d29f016e23d22809ea3631ac795a4c3e5dc252d2 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
@@ -14,6 +14,10 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
+#if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING)
+#include "components/data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h"
+#endif
+
namespace content {
class BrowserContext;
}
@@ -59,5 +63,18 @@ CreateDataReductionProxyChromeIOData(
ui_task_runner));
data_reduction_proxy_io_data->InitOnUIThread(prefs);
+#if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING)
+ scoped_ptr<data_reduction_proxy::ContentDataReductionProxyDebugUIService>
+ data_reduction_proxy_ui_service(
+ new data_reduction_proxy::ContentDataReductionProxyDebugUIService(
+ base::Bind(&data_reduction_proxy::DataReductionProxyConfigurator::
+ GetProxyConfigOnIOThread,
+ base::Unretained(
+ data_reduction_proxy_io_data->configurator())),
+ ui_task_runner, io_task_runner));
+ data_reduction_proxy_io_data->set_debug_ui_service(
+ data_reduction_proxy_ui_service.Pass());
+#endif
+
return data_reduction_proxy_io_data.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698