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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseManager.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/DatabaseManager.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
index 439d65d6a96f4c193cce6db86344eebaab4c56c5..a58beb10d36a2165f99dde4e411f81ef168435c3 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
@@ -37,7 +37,7 @@
#include "modules/webdatabase/DatabaseContext.h"
#include "modules/webdatabase/DatabaseTask.h"
#include "modules/webdatabase/DatabaseTracker.h"
-#include "platform/Logging.h"
+#include "modules/webdatabase/StorageLog.h"
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/WebTraceLocation.h"
#include "wtf/PtrUtil.h"
@@ -146,8 +146,7 @@ void DatabaseManager::throwExceptionForDatabaseError(DatabaseError error, const
static void logOpenDatabaseError(ExecutionContext* context, const String& name)
{
- WTF_LOG(StorageAPI, "Database %s for origin %s not allowed to be established", name.ascii().data(),
- context->getSecurityOrigin()->toString().ascii().data());
+ STORAGE_DVLOG(1) << "Database " << name << " for origin " << context->getSecurityOrigin()->toString() << " not allowed to be established";
}
Database* DatabaseManager::openDatabaseInternal(ExecutionContext* context,
@@ -196,7 +195,7 @@ Database* DatabaseManager::openDatabase(ExecutionContext* context,
DatabaseClient::from(context)->didOpenDatabase(database, context->getSecurityOrigin()->host(), name, expectedVersion);
if (database->isNew() && creationCallback) {
- WTF_LOG(StorageAPI, "Scheduling DatabaseCreationCallbackTask for database %p\n", database);
+ STORAGE_DVLOG(1) << "Scheduling DatabaseCreationCallbackTask for database " << database;
database->getExecutionContext()->postTask(BLINK_FROM_HERE, createSameThreadTask(&databaseCallbackHandleEvent, wrapPersistent(creationCallback), wrapPersistent(database)), "openDatabase");
}

Powered by Google App Engine
This is Rietveld 408576698