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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp

Issue 2890023003: [IndexedDB] Adding async tracing for renderer calls. (Closed)
Patch Set: test fix Created 3 years, 7 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: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
index c2847e08d92dc97aa66ea911adc8558eda3f7814..273bd82141a711735ab7dce417924b50f7427997 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
@@ -65,7 +65,8 @@ static bool IsContextValid(ExecutionContext* context) {
IDBRequest* IDBFactory::getDatabaseNames(ScriptState* script_state,
ExceptionState& exception_state) {
- IDB_TRACE("IDBFactory::getDatabaseNames");
+ IDB_TRACE("IDBFactory::getDatabaseNamesCall");
+ IDBRequest::AsyncTraceState metrics("IDBFactory::getDatabaseNames", this);
if (!IsContextValid(ExecutionContext::From(script_state)))
return nullptr;
if (!ExecutionContext::From(script_state)
@@ -76,8 +77,8 @@ IDBRequest* IDBFactory::getDatabaseNames(ScriptState* script_state,
return nullptr;
}
- IDBRequest* request =
- IDBRequest::Create(script_state, IDBAny::CreateNull(), nullptr);
+ IDBRequest* request = IDBRequest::Create(script_state, IDBAny::CreateNull(),
+ nullptr, std::move(metrics));
if (!IndexedDBClient::From(ExecutionContext::From(script_state))
->AllowIndexedDB(ExecutionContext::From(script_state),

Powered by Google App Engine
This is Rietveld 408576698