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

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: Sync to head 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..0ce15038b77936e905c45f20a7992e806a791379 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"
@@ -1010,6 +1012,11 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
StartupTaskRunnerServiceFactory::GetForProfile(profile)->
StartDeferredTaskRunners();
+ // Activate data reduction proxy. This creates a request context and makes a
+ // URL request to check if the data reduction proxy server is reachable.
+ DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile)->
rpetterson 2014/10/23 19:57:04 Is there any risk of this call slowing down startu
Not at Google. Contact bengr 2014/10/23 20:08:50 This call is simply being moved from profile_impl.
+ MaybeActivateDataReductionProxy(true);
+
AccountTrackerServiceFactory::GetForProfile(profile);
AccountReconcilorFactory::GetForProfile(profile);
}

Powered by Google App Engine
This is Rietveld 408576698