Commit 3ee56661 authored by Dominic Battre's avatar Dominic Battre Committed by Commit Bot

Added CallOnValidThread to PrefNotifierImpl::AddPrefObserver

Bug: 1028765
Change-Id: Idb5c2a62183eb4de22a8ca9fc81f897e0d0beecf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1943169
Commit-Queue: Gabriel Charette <gab@chromium.org>
Auto-Submit: Dominic Battré <battre@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720252}
parent 4c7a3413
...@@ -66,6 +66,8 @@ PrefNotifierImpl::~PrefNotifierImpl() { ...@@ -66,6 +66,8 @@ PrefNotifierImpl::~PrefNotifierImpl() {
void PrefNotifierImpl::AddPrefObserver(const std::string& path, void PrefNotifierImpl::AddPrefObserver(const std::string& path,
PrefObserver* obs) { PrefObserver* obs) {
DCHECK(thread_checker_.CalledOnValidThread());
// Get the pref observer list associated with the path. // Get the pref observer list associated with the path.
PrefObserverList* observer_list = nullptr; PrefObserverList* observer_list = nullptr;
auto observer_iterator = pref_observers_.find(path); auto observer_iterator = pref_observers_.find(path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment