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

Unified Diff: chrome/browser/themes/theme_service.h

Issue 2909183002: Replace deprecated base::NonThreadSafe in chrome/browser/themes in favor of SequenceChecker. (Closed)
Patch Set: Merge with theme_service_mac.mm changes 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/themes/theme_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.h
diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h
index 843fa9198a9691d01ca0296478cf693f9431ef78..51c676c2d0f337cf06f18469e8f6ed485942581e 100644
--- a/chrome/browser/themes/theme_service.h
+++ b/chrome/browser/themes/theme_service.h
@@ -15,7 +15,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "build/build_config.h"
#include "chrome/common/features.h"
#include "components/keyed_service/core/keyed_service.h"
@@ -59,9 +59,7 @@ class ResourceBundle;
extern "C" NSString* const kBrowserThemeDidChangeNotification;
#endif // __OBJC__
-class ThemeService : public base::NonThreadSafe,
- public content::NotificationObserver,
- public KeyedService {
+class ThemeService : public content::NotificationObserver, public KeyedService {
public:
// Public constants used in ThemeService and its subclasses:
static const char kDefaultThemeID[];
@@ -328,6 +326,8 @@ class ThemeService : public base::NonThreadSafe,
BrowserThemeProvider original_theme_provider_;
BrowserThemeProvider incognito_theme_provider_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<ThemeService> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ThemeService);
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698