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

Unified Diff: storage/browser/quota/quota_manager_proxy.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
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | storage/browser/quota/storage_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/quota_manager_proxy.cc
diff --git a/storage/browser/quota/quota_manager_proxy.cc b/storage/browser/quota/quota_manager_proxy.cc
index c8ccefc1ad230051422591af0953856a990e86c9..921eab2fdf55a2c29101e745dcc04955e185a1ab 100644
--- a/storage/browser/quota/quota_manager_proxy.cc
+++ b/storage/browser/quota/quota_manager_proxy.cc
@@ -10,6 +10,7 @@
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/task_runner_util.h"
+#include "base/trace_event/trace_event.h"
namespace storage {
@@ -27,6 +28,9 @@ void DidGetUsageAndQuota(
callback, status, usage, quota));
return;
}
+
+ // crbug.com/349708
+ TRACE_EVENT0("io", "QuotaManagerProxy DidGetUsageAndQuota");
callback.Run(status, usage, quota);
}
@@ -137,6 +141,10 @@ void QuotaManagerProxy::GetUsageAndQuota(
DidGetUsageAndQuota(original_task_runner, callback, kQuotaErrorAbort, 0, 0);
return;
}
+
+ // crbug.com/349708
+ TRACE_EVENT0("io", "QuotaManagerProxy::GetUsageAndQuota");
+
manager_->GetUsageAndQuota(
origin, type,
base::Bind(&DidGetUsageAndQuota,
« no previous file with comments | « storage/browser/quota/quota_manager.cc ('k') | storage/browser/quota/storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698