| Index: content/browser/indexed_db/indexed_db_transaction.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
|
| index be044833f4016c04a9e2f57348ba05707d7b7fb4..67677a46d11097dcb0c458399aea2145a47e81b2 100644
|
| --- a/content/browser/indexed_db/indexed_db_transaction.cc
|
| +++ b/content/browser/indexed_db/indexed_db_transaction.cc
|
| @@ -424,15 +424,14 @@ void IndexedDBTransaction::CloseOpenCursors() {
|
| open_cursors_.clear();
|
| }
|
|
|
| -void IndexedDBTransaction::AddPendingObserver(
|
| - std::unique_ptr<IndexedDBObserver> observer) {
|
| - pending_observers_.push_back(std::move(observer));
|
| +void IndexedDBTransaction::AddPendingObserver(int64_t observer_id,
|
| + IndexedDBObserver* observer) {
|
| + pending_observers_[observer_id] = observer;
|
| }
|
|
|
| void IndexedDBTransaction::ActivatePendingObserver() {
|
| - for (size_t i = 0; i < pending_observers_.size(); i++) {
|
| - database_->active_observers_.push_back(std::move(pending_observers_[i]));
|
| - }
|
| + database_->active_observers_.insert(pending_observers_.begin(),
|
| + pending_observers_.end());
|
| }
|
|
|
| } // namespace content
|
|
|