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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc

Issue 896713003: Revert of DataReductionProxyStatisticsPrefs should support WeakPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/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 d4e4dd9b1d79bcd2313f8ab92ffdecc6344ea54b..81b669fffebeea116ca08b0e936ce33aed14f864 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
@@ -46,7 +46,8 @@
data_reduction_proxy::DataReductionProxyStatisticsPrefs*
data_reduction_proxy_statistics_prefs =
new data_reduction_proxy::DataReductionProxyStatisticsPrefs(
- prefs, ui_task_runner, commit_delay);
+ prefs, ui_task_runner,
+ commit_delay);
scoped_ptr<data_reduction_proxy::DataReductionProxyIOData>
data_reduction_proxy_io_data(
@@ -58,6 +59,8 @@
io_task_runner,
ui_task_runner));
data_reduction_proxy_io_data->InitOnUIThread(prefs);
+ settings->SetDataReductionProxyStatisticsPrefs(
+ data_reduction_proxy_statistics_prefs);
return data_reduction_proxy_io_data.Pass();
}
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698