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

Unified Diff: third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp

Issue 2812473002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/quota (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/modules/quota/StorageManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
diff --git a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
index d97d2bcd6a0162aba619de1bf84b5fd657dedafc..ed0f0e4f94f0af9b65690b455622ea94a2d5559f 100644
--- a/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
+++ b/third_party/WebKit/Source/modules/quota/DeprecatedStorageQuota.cpp
@@ -56,7 +56,7 @@ void DeprecatedStorageQuota::queryUsageAndQuota(
StorageUsageCallback* success_callback,
StorageErrorCallback* error_callback) {
ExecutionContext* execution_context = script_state->GetExecutionContext();
- ASSERT(execution_context);
+ DCHECK(execution_context);
WebStorageQuotaType storage_type = static_cast<WebStorageQuotaType>(type_);
if (storage_type != kWebStorageQuotaTypeTemporary &&
@@ -90,7 +90,7 @@ void DeprecatedStorageQuota::requestQuota(
StorageQuotaCallback* success_callback,
StorageErrorCallback* error_callback) {
ExecutionContext* execution_context = script_state->GetExecutionContext();
- ASSERT(execution_context);
+ DCHECK(execution_context);
WebStorageQuotaType storage_type = static_cast<WebStorageQuotaType>(type_);
if (storage_type != kWebStorageQuotaTypeTemporary &&
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/quota/StorageManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698