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

Unified Diff: components/previews/core/previews_opt_out_store_sql.h

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_opt_out_store_sql.h
diff --git a/components/previews/core/previews_opt_out_store_sql.h b/components/previews/core/previews_opt_out_store_sql.h
index 801b85074471063f309ce6d88dc9254a862af51b..0d3b6389e0f098b58910248d4ad510054910aab3 100644
--- a/components/previews/core/previews_opt_out_store_sql.h
+++ b/components/previews/core/previews_opt_out_store_sql.h
@@ -36,7 +36,8 @@ class PreviewsOptOutStoreSQL : public PreviewsOptOutStore {
PreviewsOptOutStoreSQL(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
scoped_refptr<base::SequencedTaskRunner> background_task_runner,
- const base::FilePath& database_dir);
+ const base::FilePath& database_dir,
+ std::unique_ptr<PreviewsTypeList> enabled_previews);
~PreviewsOptOutStoreSQL() override;
// PreviewsOptOutStore implementation:
@@ -60,6 +61,9 @@ class PreviewsOptOutStoreSQL : public PreviewsOptOutStore {
// SQL connection to the SQLite database.
std::unique_ptr<sql::Connection> db_;
+ // All enabled previews and versions.
+ const std::unique_ptr<PreviewsTypeList> enabled_previews_;
+
DISALLOW_COPY_AND_ASSIGN(PreviewsOptOutStoreSQL);
};
« no previous file with comments | « components/previews/core/previews_io_data_unittest.cc ('k') | components/previews/core/previews_opt_out_store_sql.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698