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

Unified Diff: chrome/browser/win/jumplist.h

Issue 2911133002: Replace deprecated base::NonThreadSafe in chrome/browser/win in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/win/jumplist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist.h
diff --git a/chrome/browser/win/jumplist.h b/chrome/browser/win/jumplist.h
index a0fb0bf7ff55dad1bb963c26a4d114103842241a..42473cf41ac391eef923b3256415a778ea212294 100644
--- a/chrome/browser/win/jumplist.h
+++ b/chrome/browser/win/jumplist.h
@@ -17,6 +17,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
+#include "base/sequence_checker.h"
#include "base/strings/string16.h"
#include "base/synchronization/lock.h"
#include "base/task/cancelable_task_tracker.h"
@@ -64,8 +65,7 @@ class Profile;
// always delete JumpList on UI thread (the same thread it got constructed on).
class JumpList : public sessions::TabRestoreServiceObserver,
public history::TopSitesObserver,
- public RefcountedKeyedService,
- public base::NonThreadSafe {
+ public RefcountedKeyedService {
public:
struct JumpListData {
JumpListData();
@@ -272,6 +272,8 @@ class JumpList : public sessions::TabRestoreServiceObserver,
// JumpListIconsOld directory.
scoped_refptr<base::SequencedTaskRunner> delete_jumplisticons_task_runner_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
// For callbacks may be run after destruction.
base::WeakPtrFactory<JumpList> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/win/jumplist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698