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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 949533004: Rename DataReductionProxyStatisticsPrefs to DataReductionProxyCompressionStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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/ui/webui/net_internals/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
index 5f68e7a995d38e741e481a18dd23e8f558affbad..45145393fa0f67b6c8066db4ed467755285fb864 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -44,9 +44,9 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/url_constants.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h"
-#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"
#include "components/onc/onc_constants.h"
#include "components/url_fixer/url_fixer.h"
@@ -592,10 +592,12 @@ void NetInternalsMessageHandler::OnGetHistoricNetworkStats(
DataReductionProxyChromeSettings* data_reduction_proxy_settings =
DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile);
if (data_reduction_proxy_settings) {
- data_reduction_proxy::DataReductionProxyStatisticsPrefs* statistics_prefs =
- data_reduction_proxy_settings->data_reduction_proxy_service()->
- statistics_prefs();
- historic_network_info = statistics_prefs->HistoricNetworkStatsInfoToValue();
+ data_reduction_proxy::DataReductionProxyCompressionStats*
+ compression_stats =
+ data_reduction_proxy_settings->data_reduction_proxy_service()
+ ->compression_stats();
+ historic_network_info =
+ compression_stats->HistoricNetworkStatsInfoToValue();
}
SendJavascriptCommand("receivedHistoricNetworkStats", historic_network_info);
}

Powered by Google App Engine
This is Rietveld 408576698