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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove incorrect DCHECK from drp_statistics_prefs.cc Created 6 years, 3 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/browser/data_reduction_proxy_usage_stats.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h b/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h
index 33fd29e560fa2f533fa044f1c3be60a83537c599..65e06b1f82541d95961722e1be0a1c76cb254cf1 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h
@@ -35,8 +35,9 @@ class DataReductionProxyUsageStats
// MessageLoopProxy instance is owned by io_thread. |params| outlives
// this class instance.
- DataReductionProxyUsageStats(DataReductionProxyParams* params,
- base::MessageLoopProxy* ui_thread_proxy);
+ DataReductionProxyUsageStats(
+ DataReductionProxyParams* params,
+ const scoped_refptr<base::MessageLoopProxy>& ui_thread_proxy);
virtual ~DataReductionProxyUsageStats();
// Sets the callback to be called on the UI thread when the unavailability
@@ -102,7 +103,7 @@ class DataReductionProxyUsageStats
DataReductionProxyBypassType last_bypass_type_;
// True if the last request triggered the current bypass.
bool triggering_request_;
- base::MessageLoopProxy* ui_thread_proxy_;
+ const scoped_refptr<base::MessageLoopProxy> ui_thread_proxy_;
// The following 2 fields are used to determine if data reduction proxy is
// unreachable. We keep a count of requests which should go through

Powered by Google App Engine
This is Rietveld 408576698