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

Unified Diff: chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h

Issue 2909213002: Replace deprecated base::NonThreadSafe in chrome/browser/ui/views in favor of SequenceChecker. (Closed)
Patch Set: SequenceChecker => ThreadChecker for StatusTrayStateChangerWin 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/ui/views/status_icons/status_tray_state_changer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h
diff --git a/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h b/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h
index 75ee678f85e384f51e418aca2bd0cd2afa219b5c..310b117727de6d71a095482f51954862f2b8b899 100644
--- a/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h
+++ b/chrome/browser/ui/views/status_icons/status_tray_state_changer_win.h
@@ -9,7 +9,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/threading/thread_checker.h"
#include "base/win/iunknown_impl.h"
#include "base/win/scoped_comptr.h"
@@ -53,8 +53,7 @@ class __declspec(uuid("D782CCBA-AFB0-43F1-94DB-FDA3779EACCB")) INotificationCB
// overflow area to the taskbar, and refuses to do anything if the user has
// explicitly marked an icon to be always hidden.
class StatusTrayStateChangerWin : public INotificationCB,
- public base::win::IUnknownImpl,
- public base::NonThreadSafe {
+ public base::win::IUnknownImpl {
public:
StatusTrayStateChangerWin(UINT icon_id, HWND window);
@@ -129,6 +128,8 @@ class StatusTrayStateChangerWin : public INotificationCB,
// so we can't just return the notifyitem we're looking for.
std::unique_ptr<NOTIFYITEM> notify_item_;
+ THREAD_CHECKER(thread_checker_);
+
DISALLOW_COPY_AND_ASSIGN(StatusTrayStateChangerWin);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698