Chromium Code Reviews| 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..b8141257f8db579a1ffb0040aba1d59b005e3398 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, |
| + PreviewsIsEnabledCallback is_enabled_callback) |
|
tbansal1
2017/03/10 21:14:53
pass as const ref?
RyanSturm
2017/03/10 22:06:30
Done.
|
| : 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() { |