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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.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/DOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
index 84ccd6579348700645e4fb40ad77627de5c06d40..0eef0681459756f6281eff8d1743511e109bb5ca 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
@@ -368,7 +368,7 @@ void DOMWindow::close(ExecutionContext* context) {
Document* active_document = nullptr;
if (context) {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
active_document = ToDocument(context);
if (!active_document)
return;
@@ -415,13 +415,13 @@ void DOMWindow::focus(ExecutionContext* context) {
if (!page)
return;
- ASSERT(context);
+ DCHECK(context);
bool allow_focus = context->IsWindowInteractionAllowed();
if (allow_focus) {
context->ConsumeWindowInteraction();
} else {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
allow_focus = opener() && (opener() != this) &&
(ToDocument(context)->domWindow() == opener());
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.cpp ('k') | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698