Skip to content

Commit e900271

Browse files
chore: might_have_observers has been removed
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/2667839
1 parent 87df276 commit e900271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/browser/api/electron_api_web_contents.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class WebContents : public gin::Wrappable<WebContents>,
338338
}
339339
void RemoveObserver(ExtendedWebContentsObserver* obs) {
340340
// Trying to remove from an empty collection leads to an access violation
341-
if (observers_.might_have_observers())
341+
if (!observers_.empty())
342342
observers_.RemoveObserver(obs);
343343
}
344344

0 commit comments

Comments
 (0)