| 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());
|
| }
|
|
|