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

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

Issue 665703002: Activate data reduction proxy after profile initialization is complete. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. 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_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 21df767c82daec0f7ffc68e9ed40f99aabd73297..39d3ff08e3d76d0b819d9f0f905c315306dea483 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -25,6 +25,8 @@
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/download/download_service.h"
#include "chrome/browser/download/download_service_factory.h"
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
#include "chrome/browser/password_manager/password_store_factory.h"
#include "chrome/browser/prefs/incognito_mode_prefs.h"
#include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
@@ -981,6 +983,9 @@ void ProfileManager::DoFinalInit(Profile* profile, bool go_off_the_record) {
AddProfileToCache(profile);
DoFinalInitLogging(profile);
+ DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)->
bengr 2014/10/22 00:46:43 What happens in incognito?
Not at Google. Contact bengr 2014/10/22 20:03:42 This code does not run for incognito.
+ MaybeActivateDataReductionProxy(true);
+
ProfileMetrics::LogNumberOfProfiles(this);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_ADDED,

Powered by Google App Engine
This is Rietveld 408576698