Index: remoting/host/policy_watcher.cc |
diff --git a/remoting/host/policy_watcher.cc b/remoting/host/policy_watcher.cc |
index 2b9a60a429cddd20a81b0f9b734f6fecbfc95854..b80788638365b371dddac1edc3bf306d67a09c21 100644 |
--- a/remoting/host/policy_watcher.cc |
+++ b/remoting/host/policy_watcher.cc |
@@ -141,7 +141,7 @@ bool VerifyWellformedness(const base::DictionaryValue& changed_policies) { |
void PolicyWatcher::StartWatching( |
const PolicyUpdatedCallback& policy_updated_callback, |
const PolicyErrorCallback& policy_error_callback) { |
- DCHECK(CalledOnValidThread()); |
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
DCHECK(!policy_updated_callback.is_null()); |
DCHECK(!policy_error_callback.is_null()); |
DCHECK(policy_updated_callback_.is_null()); |
@@ -207,6 +207,7 @@ PolicyWatcher::PolicyWatcher( |
} |
PolicyWatcher::~PolicyWatcher() { |
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
// Stop observing |policy_service_| if StartWatching() has been called. |
if (!policy_updated_callback_.is_null()) { |
policy_service_->RemoveObserver(policy::POLICY_DOMAIN_CHROME, this); |