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

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

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/core/xml/XPathStep.cpp ('k') | Source/modules/webdatabase/DatabaseManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/Database.cpp
diff --git a/Source/modules/webdatabase/Database.cpp b/Source/modules/webdatabase/Database.cpp
index 5880d3f816ccaffefa9c8d4a2504e413a5344d17..db25a0f61e68a344e9571995f4ef423a638b5aa1 100644
--- a/Source/modules/webdatabase/Database.cpp
+++ b/Source/modules/webdatabase/Database.cpp
@@ -142,7 +142,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_DISABLED
+#if ASSERT_ENABLED
SQLTransactionErrorCallback* originalErrorCallback = errorCallback.get();
#endif
RefPtrWillBeRawPtr<SQLTransaction> transaction = SQLTransaction::create(this, callback, successCallback, errorCallback, readOnly);
« no previous file with comments | « Source/core/xml/XPathStep.cpp ('k') | Source/modules/webdatabase/DatabaseManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698