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

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

Issue 2548063002: [tracing] Show the local storage databases under dom_storage (Closed)
Patch Set: 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..30908be1fe7b516a4c52a72a6e21feee6bc8c529 100644
--- a/content/browser/dom_storage/dom_storage_database.cc
+++ b/content/browser/dom_storage/dom_storage_database.cc
@@ -135,6 +135,12 @@ bool DOMStorageDatabase::CommitChanges(bool clear_all_first,
return success;
}
+void DOMStorageDatabase::ReportMemoryUsage(
+ base::trace_event::ProcessMemoryDump* pmd,
+ const std::string& name) {
michaeln 2016/12/05 22:42:53 i think you need to check IsOpen() here
ssid 2016/12/08 18:09:47 Done.
+ 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