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

Unified Diff: third_party/WebKit/Source/platform/PluginScriptForbiddenScope.cpp

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 | « third_party/WebKit/Source/platform/PODRedBlackTree.h ('k') | third_party/WebKit/Source/platform/Timer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/PluginScriptForbiddenScope.cpp
diff --git a/third_party/WebKit/Source/platform/PluginScriptForbiddenScope.cpp b/third_party/WebKit/Source/platform/PluginScriptForbiddenScope.cpp
index 0c2b0cb58c2b728b6465d12fa3dc989ecf3287af..12ed26f581c325ec94e4cb2d60d0c53ea19e2511 100644
--- a/third_party/WebKit/Source/platform/PluginScriptForbiddenScope.cpp
+++ b/third_party/WebKit/Source/platform/PluginScriptForbiddenScope.cpp
@@ -11,18 +11,18 @@ namespace blink {
static unsigned g_plugin_script_forbidden_count = 0;
PluginScriptForbiddenScope::PluginScriptForbiddenScope() {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
++g_plugin_script_forbidden_count;
}
PluginScriptForbiddenScope::~PluginScriptForbiddenScope() {
- ASSERT(IsMainThread());
- ASSERT(g_plugin_script_forbidden_count);
+ DCHECK(IsMainThread());
+ DCHECK(g_plugin_script_forbidden_count);
--g_plugin_script_forbidden_count;
}
bool PluginScriptForbiddenScope::IsForbidden() {
- ASSERT(IsMainThread());
+ DCHECK(IsMainThread());
return g_plugin_script_forbidden_count > 0;
}
« no previous file with comments | « third_party/WebKit/Source/platform/PODRedBlackTree.h ('k') | third_party/WebKit/Source/platform/Timer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698