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

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 e99e25bbefaea249873b579d58122b8ba253e93d..28162a84093fbeaf8b7df3b8eb0e852f9c9a4fed 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -45,9 +45,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"
@@ -622,10 +622,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);
}
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698