Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: third_party/WebKit/Source/core/frame/RemoteFrame.cpp

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/RemoteFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
index 553b3d1658ba5b3095b677283ff1c029d7642f25..b03a004b0c5f0b28b6b1487a833332c2c9aa8c84 100644
--- a/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/RemoteFrame.cpp
@@ -40,7 +40,7 @@ RemoteFrame* RemoteFrame::Create(RemoteFrameClient* client,
}
RemoteFrame::~RemoteFrame() {
- ASSERT(!view_);
+ DCHECK(!view_);
}
DEFINE_TRACE(RemoteFrame) {
@@ -133,7 +133,7 @@ void RemoteFrame::CreateView() {
if (!DeprecatedLocalOwner())
return;
- ASSERT(!DeprecatedLocalOwner()->OwnedWidget());
+ DCHECK(!DeprecatedLocalOwner()->OwnedWidget());
SetView(RemoteFrameView::Create(this));
@@ -152,7 +152,7 @@ void RemoteFrame::SetWebLayer(WebLayer* web_layer) {
if (web_layer_)
GraphicsLayer::RegisterContentsLayer(web_layer_);
- ASSERT(Owner());
+ DCHECK(Owner());
ToHTMLFrameOwnerElement(Owner())->SetNeedsCompositingUpdate();
}

Powered by Google App Engine
This is Rietveld 408576698