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 81b669fffebeea116ca08b0e936ce33aed14f864..36cb73b9fd077551f0e7fce94aa0d0a6d8752f3d 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/data_reduction_proxy_debug_ui_service.h" |
+#endif |
+ |
namespace content { |
class BrowserContext; |
} |
@@ -59,6 +63,20 @@ CreateDataReductionProxyChromeIOData( |
io_task_runner, |
ui_task_runner)); |
data_reduction_proxy_io_data->InitOnUIThread(prefs); |
+ |
+#if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING) |
+ scoped_ptr<data_reduction_proxy::DataReductionProxyDebugUIService> |
+ data_reduction_proxy_ui_service( |
+ new data_reduction_proxy::DataReductionProxyDebugUIService( |
+ 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 |
+ |
settings->SetDataReductionProxyStatisticsPrefs( |
data_reduction_proxy_statistics_prefs); |