| 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_;
|
|
|