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

Unified Diff: third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp

Issue 1839643009: RELEASE_ASSERT -> CHECK and ASSERT -> DCHECK in web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation. Created 4 years, 9 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/web/NotificationPermissionClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp b/third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp
index 9334e3f8851cd07f7ca8031d9332bf8445e3712d..d3f0c039cbf9b4c706f0a92a2ce78357a7183b4d 100644
--- a/third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp
+++ b/third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp
@@ -59,10 +59,10 @@ NotificationPermissionClientImpl::~NotificationPermissionClientImpl()
ScriptPromise NotificationPermissionClientImpl::requestPermission(ScriptState* scriptState, NotificationPermissionCallback* deprecatedCallback)
{
- ASSERT(scriptState);
+ DCHECK(scriptState);
ExecutionContext* context = scriptState->getExecutionContext();
- ASSERT(context && context->isDocument());
+ DCHECK(context && context->isDocument());
tkent 2016/03/31 23:05:21 Please split this into two. DCHECK(context);
Document* document = toDocument(context);
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame());

Powered by Google App Engine
This is Rietveld 408576698