| Index: components/previews/core/previews_ui_service.cc
|
| diff --git a/components/previews/core/previews_ui_service.cc b/components/previews/core/previews_ui_service.cc
|
| index af146cc81f10fa7ebbaa270c3cddd14a7bd3c230..44cbb21c9609c490abd7c9641b6dfc974793d6a0 100644
|
| --- a/components/previews/core/previews_ui_service.cc
|
| +++ b/components/previews/core/previews_ui_service.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/single_thread_task_runner.h"
|
| -#include "components/previews/core/previews_io_data.h"
|
| #include "url/gurl.h"
|
|
|
| namespace previews {
|
| @@ -14,10 +13,12 @@ namespace previews {
|
| PreviewsUIService::PreviewsUIService(
|
| PreviewsIOData* previews_io_data,
|
| const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner,
|
| - std::unique_ptr<PreviewsOptOutStore> previews_opt_out_store)
|
| + std::unique_ptr<PreviewsOptOutStore> previews_opt_out_store,
|
| + const PreviewsIsEnabledCallback& is_enabled_callback)
|
| : io_task_runner_(io_task_runner), weak_factory_(this) {
|
| previews_io_data->Initialize(weak_factory_.GetWeakPtr(),
|
| - std::move(previews_opt_out_store));
|
| + std::move(previews_opt_out_store),
|
| + is_enabled_callback);
|
| }
|
|
|
| PreviewsUIService::~PreviewsUIService() {
|
|
|