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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.cc

Issue 1394563002: Add trace to the caller of QuotaManager::GetAvailableSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: content/browser/indexed_db/indexed_db_context_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
index dbc041f2e71fa9e4796e74746e72a86b9af2e040..4b3342e45386386b5ad9601128e9cf8d5ad2cf04 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -18,6 +18,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
+#include "base/trace_event/trace_event.h"
#include "base/values.h"
#include "content/browser/browser_main_loop.h"
#include "content/browser/indexed_db/indexed_db_connection.h"
@@ -597,6 +598,10 @@ void IndexedDBContextImpl::QueryAvailableQuota(const GURL& origin_url) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!quota_manager_proxy() || !quota_manager_proxy()->quota_manager())
return;
+
+ // crbug.com/349708
+ TRACE_EVENT0("io", "IndexedDBContextImpl::QueryAvailableQuota");
+
quota_manager_proxy()->quota_manager()->GetUsageAndQuota(
origin_url,
storage::kStorageTypeTemporary,

Powered by Google App Engine
This is Rietveld 408576698