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

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

Issue 2472213003: [IndexedDB] Refactoring to remove ref ptrs and host transaction ids. (Closed)
Patch Set: rebase 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/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 8300e147e2b4cff7c8ba15a654e6ee361872de57..449283c1bc70b55a83296017f9a73e4d922abb2d 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -236,13 +236,8 @@ base::ListValue* IndexedDBContextImpl::GetAllOriginsDetails() {
}
transaction_info->SetDouble(
- "pid",
- IndexedDBDispatcherHost::TransactionIdToProcessId(
- transaction->id()));
- transaction_info->SetDouble(
- "tid",
- IndexedDBDispatcherHost::TransactionIdToRendererTransactionId(
- transaction->id()));
+ "pid", transaction->connection()->child_process_id());
+ transaction_info->SetDouble("tid", transaction->id());
transaction_info->SetDouble(
"age",
(base::Time::Now() - transaction->diagnostics().creation_time)

Powered by Google App Engine
This is Rietveld 408576698