| 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 8bb36096c0e0c00d37ffda4b013bb66bfb96566c..83496c16d08a4c99d13b211212169a55321563ff 100644
|
| --- a/chrome/browser/profiles/profile_impl_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc
|
| @@ -46,21 +46,20 @@
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
|
| #include "components/data_reduction_proxy/core/browser/data_store_impl.h"
|
| #include "components/domain_reliability/monitor.h"
|
| #include "components/net_log/chrome_net_log.h"
|
| #include "components/prefs/json_pref_store.h"
|
| #include "components/prefs/pref_filter.h"
|
| #include "components/prefs/pref_member.h"
|
| #include "components/prefs/pref_service.h"
|
| #include "components/previews/core/previews_io_data.h"
|
| -#include "components/previews/core/previews_ui_service.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/cookie_store_factory.h"
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/resource_context.h"
|
| #include "content/public/browser/storage_partition.h"
|
| #include "extensions/browser/extension_protocols.h"
|
| #include "extensions/common/constants.h"
|
| #include "net/base/cache_type.h"
|
| #include "net/base/sdch_manager.h"
|
| #include "net/cookies/cookie_store.h"
|
| @@ -203,24 +202,23 @@ void ProfileImplIOData::Handle::Init(
|
| DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)
|
| ->InitDataReductionProxySettings(
|
| io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(),
|
| profile_->GetRequestContext(), std::move(store),
|
| BrowserThread::GetTaskRunnerForThread(BrowserThread::UI),
|
| db_task_runner);
|
|
|
| io_data_->set_previews_io_data(base::MakeUnique<previews::PreviewsIOData>(
|
| BrowserThread::GetTaskRunnerForThread(BrowserThread::UI),
|
| BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)));
|
| - PreviewsServiceFactory::GetForProfile(profile_)->set_previews_ui_service(
|
| - base::MakeUnique<previews::PreviewsUIService>(
|
| - io_data_->previews_io_data(),
|
| - BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), nullptr));
|
| + PreviewsServiceFactory::GetForProfile(profile_)->Initialize(
|
| + io_data_->previews_io_data(),
|
| + BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), profile_path);
|
| }
|
|
|
| content::ResourceContext*
|
| ProfileImplIOData::Handle::GetResourceContext() const {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| LazyInitialize();
|
| return GetResourceContextNoInit();
|
| }
|
|
|
| content::ResourceContext*
|
|
|