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

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: 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
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 80dbe3442b777f51b62bf4883fca7d6895de4f17..59805e6ca695624777cce9c2ba253eafa0b0fef2 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -82,6 +82,7 @@
#include "chrome/grit/chromium_strings.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs.h"
#include "components/domain_reliability/monitor.h"
@@ -667,10 +668,12 @@ void ProfileImpl::DoFinalInit() {
#else
base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
#endif
+ data_reduction_proxy::MigrateStatisticsPrefs(g_browser_process->local_state(),
+ prefs_.get());
mmenke 2014/10/15 15:49:34 Add a TODO, with a milestone, about when this can
bengr 2014/10/15 22:52:51 Done.
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 | « no previous file | components/components_tests.gyp » ('j') | components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698