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

Unified Diff: third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp

Issue 2327643003: Replace ASSERT*() with DCHECK*() in core/fetch/ and core/loader/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp
diff --git a/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp b/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp
index 6b9fd8305cc60090a7faa3535c4c2f51eae7dd08..a0083bc4a76db2f4b30cc5b0da2f1d1fba8366e2 100644
--- a/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp
+++ b/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.cpp
@@ -67,13 +67,13 @@ ApplicationCacheHost::ApplicationCacheHost(DocumentLoader* documentLoader)
, m_documentLoader(documentLoader)
, m_defersEvents(true)
{
- ASSERT(m_documentLoader);
+ DCHECK(m_documentLoader);
}
ApplicationCacheHost::~ApplicationCacheHost()
{
// Verify that detachFromDocumentLoader() has been performed already.
- ASSERT(!m_host);
+ DCHECK(!m_host);
}
void ApplicationCacheHost::willStartLoadingMainResource(ResourceRequest& request)
@@ -85,7 +85,7 @@ void ApplicationCacheHost::willStartLoadingMainResource(ResourceRequest& request
if (!isApplicationCacheEnabled())
return;
- ASSERT(m_documentLoader->frame());
+ DCHECK(m_documentLoader->frame());
LocalFrame& frame = *m_documentLoader->frame();
m_host = frame.loader().client()->createApplicationCacheHost(this);
if (!m_host)
@@ -176,7 +176,7 @@ void ApplicationCacheHost::willStartLoadingResource(ResourceRequest& request)
void ApplicationCacheHost::setApplicationCache(ApplicationCache* domApplicationCache)
{
- ASSERT(!m_domApplicationCache || !domApplicationCache);
+ DCHECK(!m_domApplicationCache || !domApplicationCache);
m_domApplicationCache = domApplicationCache;
}
@@ -279,7 +279,7 @@ void ApplicationCacheHost::abort()
bool ApplicationCacheHost::isApplicationCacheEnabled()
{
- ASSERT(m_documentLoader->frame());
+ DCHECK(m_documentLoader->frame());
return m_documentLoader->frame()->settings() && m_documentLoader->frame()->settings()->offlineWebApplicationCacheEnabled();
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/appcache/ApplicationCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698