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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc

Issue 1012923003: Fix race in DataReductionProxyService read/write. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr CR comment 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
index fd41eda777ca15f847b0bc53d232c86141b59ac3..422cd424f34a846ebee419190125aef311fe5054 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
@@ -344,4 +344,10 @@ DataReductionProxyTestContext::mock_data_reduction_proxy_service()
data_reduction_proxy_service());
}
+DataReductionProxyUsageStats::UnreachableCallback
+DataReductionProxyTestContext::unreachable_callback() const {
+ return base::Bind(&DataReductionProxySettings::SetUnreachable,
+ base::Unretained(settings_.get()));
+}
+
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698