Fix incorrect (for cromite) DCHECK
This commit is contained in:
@@ -8,10 +8,10 @@ and disable observers
|
||||
Original License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
|
||||
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||||
---
|
||||
.../renderer/modules/netinfo/network_information.cc | 5 ++++-
|
||||
.../renderer/modules/netinfo/network_information.cc | 6 +++++-
|
||||
.../platform/network/network_state_notifier.cc | 11 +++++++++++
|
||||
.../platform/network/network_state_notifier.h | 2 +-
|
||||
3 files changed, 16 insertions(+), 2 deletions(-)
|
||||
3 files changed, 17 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/third_party/blink/renderer/modules/netinfo/network_information.cc b/third_party/blink/renderer/modules/netinfo/network_information.cc
|
||||
--- a/third_party/blink/renderer/modules/netinfo/network_information.cc
|
||||
@@ -33,7 +33,15 @@ diff --git a/third_party/blink/renderer/modules/netinfo/network_information.cc b
|
||||
DCHECK(GetExecutionContext()->IsContextThread());
|
||||
|
||||
const String host = Host();
|
||||
@@ -248,6 +249,7 @@ void NetworkInformation::ContextDestroyed() {
|
||||
@@ -236,6 +237,7 @@ void NetworkInformation::RemoveAllEventListeners() {
|
||||
}
|
||||
|
||||
bool NetworkInformation::HasPendingActivity() const {
|
||||
+ if ((true)) return false;
|
||||
DCHECK(context_stopped_ || IsObserving() == HasEventListeners());
|
||||
|
||||
// Prevent collection of this object when there are active listeners.
|
||||
@@ -248,6 +250,7 @@ void NetworkInformation::ContextDestroyed() {
|
||||
}
|
||||
|
||||
void NetworkInformation::StartObserving() {
|
||||
@@ -41,7 +49,7 @@ diff --git a/third_party/blink/renderer/modules/netinfo/network_information.cc b
|
||||
if (!IsObserving() && !context_stopped_) {
|
||||
type_ = GetNetworkStateNotifier().ConnectionType();
|
||||
DCHECK(!connection_observer_handle_);
|
||||
@@ -258,6 +260,7 @@ void NetworkInformation::StartObserving() {
|
||||
@@ -258,6 +261,7 @@ void NetworkInformation::StartObserving() {
|
||||
}
|
||||
|
||||
void NetworkInformation::StopObserving() {
|
||||
|
||||
Reference in New Issue
Block a user