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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 652743004: Migrate data reduction proxy statistics prefs to profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 8ddd09e27d5235f0175fd6ef80bf2c61a1eb2cc0..f7a8c913acfee96bfdaa3597d22f4451bf120cd1 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -83,6 +83,7 @@
#include "chrome/grit/chromium_strings.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_params.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
#include "components/domain_reliability/monitor.h"
@@ -664,10 +665,13 @@ void ProfileImpl::DoFinalInit() {
#else
base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
#endif
+ // TODO(bengr): Remove this in M-43.
+ data_reduction_proxy::MigrateStatisticsPrefs(g_browser_process->local_state(),
+ prefs_.get());
data_reduction_proxy_statistics_prefs =
scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>(
new data_reduction_proxy::DataReductionProxyStatisticsPrefs(
- g_browser_process->local_state(),
+ prefs_.get(),
base::MessageLoopProxy::current(),
commit_delay));
data_reduction_proxy_chrome_settings->SetDataReductionProxyStatisticsPrefs(
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698