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

Unified Diff: chrome/browser/extensions/warning_badge_service.h

Issue 2912003002: Replace deprecated base::NonThreadSafe in chrome/browser/extensions 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/extensions/warning_badge_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/warning_badge_service.h
diff --git a/chrome/browser/extensions/warning_badge_service.h b/chrome/browser/extensions/warning_badge_service.h
index f0ea904f8f399c169359e4db7ce9034cfb0de12f..418fd777fe9b63ef61b0ff3035ad83e93e55837b 100644
--- a/chrome/browser/extensions/warning_badge_service.h
+++ b/chrome/browser/extensions/warning_badge_service.h
@@ -7,7 +7,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/keyed_service/core/keyed_service.h"
#include "extensions/browser/warning_service.h"
#include "extensions/browser/warning_set.h"
@@ -19,8 +19,7 @@ namespace extensions {
// A service that is responsible for showing an extension warning badge on the
// wrench menu.
class WarningBadgeService : public KeyedService,
- public WarningService::Observer,
- public base::NonThreadSafe {
+ public WarningService::Observer {
public:
explicit WarningBadgeService(Profile* profile);
~WarningBadgeService() override;
@@ -51,6 +50,8 @@ class WarningBadgeService : public KeyedService,
// Warnings that do not trigger a badge on the wrench menu.
WarningSet suppressed_warnings_;
+ SEQUENCE_CHECKER(sequence_checker_);
Devlin 2017/05/30 20:04:25 This class should only ever be used on the UI thre
gab 2017/05/31 16:36:24 Done.
+
DISALLOW_COPY_AND_ASSIGN(WarningBadgeService);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/warning_badge_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698