Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 9c4752f9e99322b3d7c62c50f15fe83525a7a52e..2d0368173da653f3f1d5638a98e1835ff9e9a618 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -44,6 +44,7 @@ |
#include "chrome/browser/download/chrome_download_manager_delegate.h" |
#include "chrome/browser/download/download_service.h" |
#include "chrome/browser/download/download_service_factory.h" |
+#include "chrome/browser/net/net_pref_observer.h" |
#include "chrome/browser/net/predictor.h" |
#include "chrome/browser/net/proxy_service_factory.h" |
#include "chrome/browser/permissions/permission_manager.h" |
@@ -115,6 +116,7 @@ |
#include "content/public/common/content_constants.h" |
#include "content/public/common/page_zoom.h" |
#include "extensions/features/features.h" |
+#include "net/http/http_network_session.h" |
#include "ppapi/features/features.h" |
#include "printing/features/features.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -613,6 +615,9 @@ void ProfileImpl::DoFinalInit() { |
session_cookie_mode = content::CookieStoreConfig::RESTORED_SESSION_COOKIES; |
} |
+ DCHECK(!net_pref_observer_); |
+ net_pref_observer_.reset(new NetPrefObserver(prefs_.get())); |
Bence
2016/12/20 14:58:07
Assign to base::MakeUnique<NetPrefObserver>(prefs_
pmarko
2016/12/20 18:00:37
Done.
|
+ |
// Make sure we initialize the ProfileIOData after everything else has been |
// initialized that we might be reading from the IO thread. |