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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseTask.cpp

Issue 2229213002: Web SQL: Replace WTF_LOG() with STORAGE_DVLOG() or SQL_DVLOG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using LAZY_STREAM Created 4 years, 4 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/DatabaseTask.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseTask.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseTask.cpp
index e7710a72a33d52242b76cd866f1cf9d4b8a8bdba..553fc52367add832ee23038a9d0d06f2a6246172 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseTask.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseTask.cpp
@@ -31,7 +31,7 @@
#include "modules/webdatabase/Database.h"
#include "modules/webdatabase/DatabaseContext.h"
#include "modules/webdatabase/DatabaseThread.h"
-#include "platform/Logging.h"
+#include "modules/webdatabase/StorageLog.h"
namespace blink {
@@ -65,9 +65,9 @@ void DatabaseTask::run()
#endif
return;
}
-
- WTF_LOG(StorageAPI, "Performing %s %p\n", debugTaskName(), this);
-
+#if DCHECK_IS_ON()
+ STORAGE_DVLOG(1) << "Performing " << debugTaskName() << " " << this;
+#endif
m_database->resetAuthorizer();
doPerformTask();
@@ -100,7 +100,7 @@ void Database::DatabaseOpenTask::doPerformTask()
m_errorMessage = errorMessage.isolatedCopy();
}
-#if !LOG_DISABLED
+#if DCHECK_IS_ON()
const char* Database::DatabaseOpenTask::debugTaskName() const
{
return "DatabaseOpenTask";
@@ -120,7 +120,7 @@ void Database::DatabaseCloseTask::doPerformTask()
database()->close();
}
-#if !LOG_DISABLED
+#if DCHECK_IS_ON()
const char* Database::DatabaseCloseTask::debugTaskName() const
{
return "DatabaseCloseTask";
@@ -158,7 +158,7 @@ void Database::DatabaseTransactionTask::taskCancelled()
m_transaction->notifyDatabaseThreadIsShuttingDown();
}
-#if !LOG_DISABLED
+#if DCHECK_IS_ON()
const char* Database::DatabaseTransactionTask::debugTaskName() const
{
return "DatabaseTransactionTask";
@@ -180,7 +180,7 @@ void Database::DatabaseTableNamesTask::doPerformTask()
m_tableNames = database()->performGetTableNames();
}
-#if !LOG_DISABLED
+#if DCHECK_IS_ON()
const char* Database::DatabaseTableNamesTask::debugTaskName() const
{
return "DatabaseTableNamesTask";

Powered by Google App Engine
This is Rietveld 408576698