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

Unified Diff: Source/modules/webdatabase/Database.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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: Source/modules/webdatabase/Database.cpp
diff --git a/Source/modules/webdatabase/Database.cpp b/Source/modules/webdatabase/Database.cpp
index 70820badc4450fbd093805fe69ed4e6edec26e5c..7c279510bba74cb2d75bf3bb9d3830a88a1e2af3 100644
--- a/Source/modules/webdatabase/Database.cpp
+++ b/Source/modules/webdatabase/Database.cpp
@@ -141,7 +141,7 @@ void Database::runTransaction(PassOwnPtr<SQLTransactionCallback> callback, PassO
// FIXME: Rather than passing errorCallback to SQLTransaction and then sometimes firing it ourselves,
// this code should probably be pushed down into DatabaseBackend so that we only create the SQLTransaction
// if we're actually going to run it.
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
SQLTransactionErrorCallback* originalErrorCallback = errorCallback.get();
#endif
RefPtrWillBeRawPtr<SQLTransaction> transaction = SQLTransaction::create(this, callback, successCallback, errorCallback, readOnly);

Powered by Google App Engine
This is Rietveld 408576698