DescriptionRemove manual ref()-deref() in DatabaseContext.
DatabaseManager holds DatabaseContext references instead.
- We need to move DatabaseManager::registerDatabaseContext call from the
constructor to the factory because registerDatabaseContext now increments the
reference counter of a DatabaseContext and we can't update the reference
counter in the constructor.
- We move DatabaseManager::unregisterDatabaseContext call from stopDatabases to
contextDestroyed in order to match to deref() in the old code.
- We don't need m_isRegistered any longer because contextDestroyed is called
just once. stopDatabases can be called twice.
- We need to move ~DatabaseManager implementation to DatabaseManager.cpp because
we add RefPtr<DatabaseContext> in a member of DatabaseManager and
~DatabaseManager needs a complete definition of DatabaseContext.
BUG=347902
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170027
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|