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

Unified Diff: components/prefs/scoped_user_pref_update.cc

Issue 2908263002: Replace deprecated base::NonThreadSafe in components/prefs 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 | « components/prefs/scoped_user_pref_update.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/scoped_user_pref_update.cc
diff --git a/components/prefs/scoped_user_pref_update.cc b/components/prefs/scoped_user_pref_update.cc
index dfba3349a2d5ae79be3917733e721f4c65df042f..bec88eef2285728216fb3ef453d2a24050b74a53 100644
--- a/components/prefs/scoped_user_pref_update.cc
+++ b/components/prefs/scoped_user_pref_update.cc
@@ -13,15 +13,16 @@ namespace subtle {
ScopedUserPrefUpdateBase::ScopedUserPrefUpdateBase(PrefService* service,
const std::string& path)
: service_(service), path_(path), value_(NULL) {
- DCHECK(service_->CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(service_->sequence_checker_);
}
ScopedUserPrefUpdateBase::~ScopedUserPrefUpdateBase() {
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
Notify();
}
base::Value* ScopedUserPrefUpdateBase::GetValueOfType(base::Value::Type type) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (!value_)
value_ = service_->GetMutableUserPref(path_, type);
return value_;
« no previous file with comments | « components/prefs/scoped_user_pref_update.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698