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

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

Issue 501183003: Remove implicit conversions from scoped_refptr to T* in content/browser/indexed_db/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: content/browser/indexed_db/indexed_db_transaction_coordinator.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction_coordinator.cc b/content/browser/indexed_db/indexed_db_transaction_coordinator.cc
index 72a98ad5a45315605fc79dbddcf511a586f6f775..fe1f545a34b364fbd8c7db715e698b13eee5659d 100644
--- a/content/browser/indexed_db/indexed_db_transaction_coordinator.cc
+++ b/content/browser/indexed_db/indexed_db_transaction_coordinator.cc
@@ -70,12 +70,12 @@ IndexedDBTransactionCoordinator::GetTransactions() const {
for (TransactionSet::const_iterator it = started_transactions_.begin();
it != started_transactions_.end();
++it) {
- result.push_back(*it);
+ result.push_back(it->get());
}
for (TransactionSet::const_iterator it = queued_transactions_.begin();
it != queued_transactions_.end();
++it) {
- result.push_back(*it);
+ result.push_back(it->get());
}
return result;
@@ -97,7 +97,7 @@ void IndexedDBTransactionCoordinator::ProcessQueuedTransactions() {
for (TransactionSet::const_iterator it = started_transactions_.begin();
it != started_transactions_.end();
++it) {
- IndexedDBTransaction* transaction = *it;
+ IndexedDBTransaction* transaction = it->get();
if (transaction->mode() == blink::WebIDBTransactionModeReadWrite) {
// Started read/write transactions have exclusive access to the object
// stores within their scopes.
@@ -110,7 +110,7 @@ void IndexedDBTransactionCoordinator::ProcessQueuedTransactions() {
while (it != queued_transactions_.end()) {
scoped_refptr<IndexedDBTransaction> transaction = *it;
++it;
- if (CanStartTransaction(transaction, locked_scope)) {
+ if (CanStartTransaction(transaction.get(), locked_scope)) {
DCHECK_EQ(IndexedDBTransaction::CREATED, transaction->state());
queued_transactions_.erase(transaction);
started_transactions_.insert(transaction);
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.h ('k') | content/browser/indexed_db/indexed_db_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698