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

Unified Diff: third_party/WebKit/Source/core/page/CreateWindow.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/page/CreateWindow.cpp
diff --git a/third_party/WebKit/Source/core/page/CreateWindow.cpp b/third_party/WebKit/Source/core/page/CreateWindow.cpp
index 6e78204a60eb845b3b91936ae072e7ced9c9e028..ba803300e65877345e08666a74c6982c35976295 100644
--- a/third_party/WebKit/Source/core/page/CreateWindow.cpp
+++ b/third_party/WebKit/Source/core/page/CreateWindow.cpp
@@ -83,7 +83,7 @@ static Frame* CreateNewWindow(LocalFrame& opener_frame,
if (!page)
return nullptr;
- ASSERT(page->MainFrame());
+ DCHECK(page->MainFrame());
LocalFrame& frame = *ToLocalFrame(page->MainFrame());
if (!EqualIgnoringASCIICase(request.FrameName(), "_blank"))
@@ -183,7 +183,7 @@ DOMWindow* CreateWindow(const String& url_string,
LocalFrame& opener_frame,
ExceptionState& exception_state) {
LocalFrame* active_frame = calling_window.GetFrame();
- ASSERT(active_frame);
+ DCHECK(active_frame);
KURL completed_url = url_string.IsEmpty()
? KURL(kParsedURLString, g_empty_string)
« no previous file with comments | « third_party/WebKit/Source/core/page/ContextMenuController.cpp ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698