Commit 6d8c17f1 authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Chromium LUCI CQ

Migrate might_have_observer to empty in components/services/app_service

Bug: 1155308
Change-Id: I3dddd787488aeea1d82fb50f48dd469f49acb5a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2637088Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845214}
parent 13b0436d
...@@ -40,7 +40,7 @@ AppRegistryCache::~AppRegistryCache() { ...@@ -40,7 +40,7 @@ AppRegistryCache::~AppRegistryCache() {
for (auto& obs : observers_) { for (auto& obs : observers_) {
obs.OnAppRegistryCacheWillBeDestroyed(this); obs.OnAppRegistryCacheWillBeDestroyed(this);
} }
DCHECK(!observers_.might_have_observers()); DCHECK(observers_.empty());
} }
void AppRegistryCache::AddObserver(Observer* observer) { void AppRegistryCache::AddObserver(Observer* observer) {
......
...@@ -44,7 +44,7 @@ InstanceRegistry::~InstanceRegistry() { ...@@ -44,7 +44,7 @@ InstanceRegistry::~InstanceRegistry() {
for (auto& obs : observers_) { for (auto& obs : observers_) {
obs.OnInstanceRegistryWillBeDestroyed(this); obs.OnInstanceRegistryWillBeDestroyed(this);
} }
DCHECK(!observers_.might_have_observers()); DCHECK(observers_.empty());
} }
void InstanceRegistry::AddObserver(Observer* observer) { void InstanceRegistry::AddObserver(Observer* observer) {
......
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