summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/storage/Database.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/storage/Database.cpp')
-rw-r--r--Source/WebCore/storage/Database.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WebCore/storage/Database.cpp b/Source/WebCore/storage/Database.cpp
index 920f75b..8ef780e 100644
--- a/Source/WebCore/storage/Database.cpp
+++ b/Source/WebCore/storage/Database.cpp
@@ -36,7 +36,7 @@
#include "DatabaseThread.h"
#include "DatabaseTracker.h"
#include "Document.h"
-#include "InspectorController.h"
+#include "InspectorInstrumentation.h"
#include "Logging.h"
#include "NotImplemented.h"
#include "Page.h"
@@ -106,13 +106,8 @@ PassRefPtr<Database> Database::openDatabase(ScriptExecutionContext* context, con
DatabaseTracker::tracker().setDatabaseDetails(context->securityOrigin(), name, displayName, estimatedSize);
context->setHasOpenDatabases();
-#if ENABLE(INSPECTOR)
- if (context->isDocument()) {
- Document* document = static_cast<Document*>(context);
- if (Page* page = document->page())
- page->inspectorController()->didOpenDatabase(database, context->securityOrigin()->host(), name, expectedVersion);
- }
-#endif
+
+ InspectorInstrumentation::didOpenDatabase(context, database.get(), context->securityOrigin()->host(), name, expectedVersion);
// If it's a new database and a creation callback was provided, reset the expected
// version to "" and schedule the creation callback. Because of some subtle String