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

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

Issue 2607533002: Prefer using ContextClient over ContextLifecycleObserver (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: third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
index 7efb5056a6ec0411888cf7f1faa27a85436c41f2..3f9a81e86ba765a4c2f39b34f00c4aabdf299ff8 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
@@ -97,7 +97,7 @@ IDBTransaction::IDBTransaction(ScriptState* scriptState,
const HashSet<String>& scope,
WebIDBTransactionMode mode,
IDBDatabase* db)
- : ContextLifecycleObserver(scriptState->getExecutionContext()),
+ : ContextClient(scriptState->getExecutionContext()),
sof 2017/01/05 15:12:08 This one is flakily repro'ing on the bots, https
m_id(id),
m_database(db),
m_mode(mode),
@@ -121,7 +121,7 @@ IDBTransaction::IDBTransaction(ExecutionContext* executionContext,
IDBDatabase* db,
IDBOpenDBRequest* openDBRequest,
const IDBDatabaseMetadata& oldMetadata)
- : ContextLifecycleObserver(executionContext),
+ : ContextClient(executionContext),
m_id(id),
m_database(db),
m_openDBRequest(openDBRequest),
@@ -149,7 +149,7 @@ DEFINE_TRACE(IDBTransaction) {
visitor->trace(m_oldStoreMetadata);
visitor->trace(m_deletedIndexes);
EventTargetWithInlineData::trace(visitor);
- ContextLifecycleObserver::trace(visitor);
+ ContextClient::trace(visitor);
}
void IDBTransaction::setError(DOMException* error) {
@@ -452,7 +452,7 @@ const AtomicString& IDBTransaction::interfaceName() const {
}
ExecutionContext* IDBTransaction::getExecutionContext() const {
- return ContextLifecycleObserver::getExecutionContext();
+ return ContextClient::getExecutionContext();
}
DispatchEventResult IDBTransaction::dispatchEventInternal(Event* event) {

Powered by Google App Engine
This is Rietveld 408576698