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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLValue.cpp

Issue 2813433002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/webdatabase (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/webdatabase 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
Index: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLValue.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLValue.cpp b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLValue.cpp
index 6dd6d710cd16a95db0cb80353ee886891966f233..3506326386a0564821662f57c0c0fdd4625c51cb 100644
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLValue.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLValue.cpp
@@ -36,14 +36,14 @@ SQLValue::SQLValue(const SQLValue& val)
string_(val.string_.IsolatedCopy()) {}
String SQLValue::GetString() const {
- ASSERT(type_ == kStringValue);
+ DCHECK_EQ(type_, kStringValue);
// Must return a copy since ref-shared Strings are not thread safe
return string_.IsolatedCopy();
}
double SQLValue::Number() const {
- ASSERT(type_ == kNumberValue);
+ DCHECK_EQ(type_, kNumberValue);
return number_;
}

Powered by Google App Engine
This is Rietveld 408576698