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

Unified Diff: third_party/WebKit/Source/core/loader/ProgressTracker.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
Index: third_party/WebKit/Source/core/loader/ProgressTracker.cpp
diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
index bcaa6a1e24a367f15b73837f6edf2e7346d181b7..148ba2ab08271e2ce8797170eb71d75f6bb9035a 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
@@ -91,7 +91,7 @@ void ProgressTracker::dispose()
{
if (m_frame->isLoading())
progressCompleted();
- ASSERT(!m_frame->isLoading());
+ DCHECK(!m_frame->isLoading());
}
double ProgressTracker::estimatedProgress() const
@@ -120,7 +120,7 @@ void ProgressTracker::progressStarted()
void ProgressTracker::progressCompleted()
{
- ASSERT(m_frame->isLoading());
+ DCHECK(m_frame->isLoading());
m_frame->setIsLoading(false);
sendFinalProgress();
reset();
@@ -212,7 +212,7 @@ void ProgressTracker::maybeSendProgress()
DCHECK_GE(m_progressValue, initialProgressValue);
// Always leave space at the end. This helps show the user that we're not
// done until we're done.
- DCHECK(m_progressValue <= 0.9);
+ DCHECK_LE(m_progressValue, 0.9);
if (m_progressValue < m_lastNotifiedProgressValue)
return;
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/core/loader/TextTrackLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698