Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: components/previews/core/previews_ui_service.cc

Issue 2749693003: Reland of Moving previews code from components/ to chrome/ (Closed)
Patch Set: fixed vector copy Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « components/previews/core/previews_ui_service.h ('k') | components/previews/core/previews_ui_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698