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

Unified Diff: third_party/WebKit/Source/platform/AsyncMethodRunner.h

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/platform/Crypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/AsyncMethodRunner.h
diff --git a/third_party/WebKit/Source/platform/AsyncMethodRunner.h b/third_party/WebKit/Source/platform/AsyncMethodRunner.h
index 1959b898395d2a49c01d885204d29238abd1e168..bc5e6a33702081863a0c20622c47b5c70e21a29c 100644
--- a/third_party/WebKit/Source/platform/AsyncMethodRunner.h
+++ b/third_party/WebKit/Source/platform/AsyncMethodRunner.h
@@ -56,7 +56,7 @@ class AsyncMethodRunner final
// resume() is called.
void RunAsync() {
if (suspended_) {
- ASSERT(!timer_.IsActive());
+ DCHECK(!timer_.IsActive());
run_when_resumed_ = true;
return;
}
@@ -97,13 +97,13 @@ class AsyncMethodRunner final
void Stop() {
if (suspended_) {
- ASSERT(!timer_.IsActive());
+ DCHECK(!timer_.IsActive());
run_when_resumed_ = false;
suspended_ = false;
return;
}
- ASSERT(!run_when_resumed_);
+ DCHECK(!run_when_resumed_);
timer_.Stop();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/Crypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698