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

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

Issue 2439203002: Adding a short blacklist period after every previews opt out (Closed)
Patch Set: Created 4 years, 2 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_black_list.h
diff --git a/components/previews/core/previews_black_list.h b/components/previews/core/previews_black_list.h
index 7bd575302df3d7c9531c494e9c5dcd47ddd8cc39..f42c64ac5569908b5efd320dc9113e558e221134 100644
--- a/components/previews/core/previews_black_list.h
+++ b/components/previews/core/previews_black_list.h
@@ -96,20 +96,23 @@ class PreviewsBlackList {
// Enqueues a task to run when when loading black list information has
// completed. Maintains the order that tasks were called in.
void QueuePendingTask(base::Closure callback);
// Map maintaining the in-memory black list.
std::unique_ptr<BlackListItemMap> black_list_item_map_;
// Whether the black list is done being loaded from the backing store.
bool loaded_;
+ // The time of the last opt out for this session.
+ base::Optional<base::Time> last_opt_out_time_;
tbansal1 2016/10/21 23:15:33 #include base/optional.h
RyanSturm 2016/10/24 21:18:25 Done.
+
// The backing store of the black list information.
std::unique_ptr<PreviewsOptOutStore> opt_out_store_;
// Callbacks to be run after loading information from the backing store has
// completed.
std::queue<base::Closure> pending_callbacks_;
std::unique_ptr<base::Clock> clock_;
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698