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

Unified Diff: content/browser/dom_storage/dom_storage_database.cc

Issue 2548063002: [tracing] Show the local storage databases under dom_storage (Closed)
Patch Set: Add IsOpen. Created 4 years 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: content/browser/dom_storage/dom_storage_database.cc
diff --git a/content/browser/dom_storage/dom_storage_database.cc b/content/browser/dom_storage/dom_storage_database.cc
index d11aad76540c65aa77527f1bf741c172943aa7ad..2f47c3af03e5262bf6a2588fc1b05b7b1ec604d1 100644
--- a/content/browser/dom_storage/dom_storage_database.cc
+++ b/content/browser/dom_storage/dom_storage_database.cc
@@ -135,6 +135,13 @@ bool DOMStorageDatabase::CommitChanges(bool clear_all_first,
return success;
}
+void DOMStorageDatabase::ReportMemoryUsage(
+ base::trace_event::ProcessMemoryDump* pmd,
+ const std::string& name) {
+ if (IsOpen())
+ db_->ReportMemoryUsage(pmd, name);
+}
+
bool DOMStorageDatabase::LazyOpen(bool create_if_needed) {
if (failed_to_open_) {
// Don't try to open a database that we know has failed
« no previous file with comments | « content/browser/dom_storage/dom_storage_database.h ('k') | content/browser/dom_storage/dom_storage_database_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698