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

Unified Diff: chrome/browser/profile_resetter/profile_resetter.h

Issue 2908143004: Replace deprecated base::NonThreadSafe in chrome/browser/profile_resetter in favor of SequenceCheck… (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/profile_resetter/profile_resetter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile_resetter/profile_resetter.h
diff --git a/chrome/browser/profile_resetter/profile_resetter.h b/chrome/browser/profile_resetter/profile_resetter.h
index 68eeae65a69e19ea669d7b69b6e046e42a8ee9be..c59273dbde47fcb5df23f9242c6970780ba257ac 100644
--- a/chrome/browser/profile_resetter/profile_resetter.h
+++ b/chrome/browser/profile_resetter/profile_resetter.h
@@ -16,8 +16,8 @@
#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/threading/non_thread_safe.h"
#include "chrome/browser/profile_resetter/brandcoded_default_settings.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/browser/browsing_data_remover.h"
@@ -31,8 +31,7 @@ class CancellationFlag;
// This class allows resetting certain aspects of a profile to default values.
// It is used in case the profile has been damaged due to malware or bad user
// settings.
-class ProfileResetter : public base::NonThreadSafe,
- public content::BrowsingDataRemover::Observer {
+class ProfileResetter : public content::BrowsingDataRemover::Observer {
public:
// Flags indicating what aspects of a profile shall be reset.
enum Resettable {
@@ -106,6 +105,8 @@ class ProfileResetter : public base::NonThreadSafe,
std::unique_ptr<TemplateURLService::Subscription> template_url_service_sub_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<ProfileResetter> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ProfileResetter);
« no previous file with comments | « no previous file | chrome/browser/profile_resetter/profile_resetter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698