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

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

Issue 198913003: DevTools: Clean up InspectorDatabaseAgent state on page reload (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/modules/webdatabase/InspectorDatabaseAgent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/InspectorDatabaseAgent.cpp
diff --git a/Source/modules/webdatabase/InspectorDatabaseAgent.cpp b/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
index ade61ff32289acd9b6bfa18bd7a9470f456234be..7fb02271a8381328df5eb4dc0ea5d8af2c2b803a 100644
--- a/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
+++ b/Source/modules/webdatabase/InspectorDatabaseAgent.cpp
@@ -205,14 +205,8 @@ void InspectorDatabaseAgent::didOpenDatabase(PassRefPtrWillBeRawPtr<Database> da
resource->bind(m_frontend);
}
-void InspectorDatabaseAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loader)
+void InspectorDatabaseAgent::didCommitLoadForMainFrame()
{
- // FIXME: If "frame" is always guarenteed to be in the same Page as loader->frame()
- // then all we need to check here is loader->frame()->isMainFrame()
- // and we don't need "frame" at all.
- if (loader->frame() != frame->page()->mainFrame())
- return;
-
m_resources.clear();
}
« no previous file with comments | « Source/modules/webdatabase/InspectorDatabaseAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698