Index: chrome/browser/profiles/profile_impl_io_data.cc |
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
index 7f1204cd7097cf56d5b4d59fa25d47568cb51a6a..0c679ddaba0bcd5ec520259f2c166a583b5ea5ae 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -21,20 +21,22 @@ |
#include "base/threading/worker_pool.h" |
#include "build/build_config.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/chromeos/profiles/profile_helper.h" |
#include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
#include "chrome/browser/io_thread.h" |
#include "chrome/browser/net/chrome_network_delegate.h" |
#include "chrome/browser/net/http_server_properties_manager_factory.h" |
+#include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" |
+#include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" |
#include "chrome/browser/net/predictor.h" |
#include "chrome/browser/net/quota_policy_channel_id_store.h" |
#include "chrome/browser/net/sdch_owner_pref_storage.h" |
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.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/profiles/profile.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
@@ -196,20 +198,23 @@ void ProfileImplIOData::Handle::Init( |
pool->GetSequenceToken(), |
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
std::unique_ptr<data_reduction_proxy::DataStore> store( |
new data_reduction_proxy::DataStoreImpl(profile_path)); |
DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_) |
->InitDataReductionProxySettings( |
io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(), |
profile_->GetRequestContext(), std::move(store), |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
db_task_runner); |
+ UINetworkQualityEstimatorServiceFactory::GetForProfile(profile_)->Initialize( |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
} |
content::ResourceContext* |
ProfileImplIOData::Handle::GetResourceContext() const { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
LazyInitialize(); |
return GetResourceContextNoInit(); |
} |
content::ResourceContext* |