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

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

Issue 73153003: Remove dead code from IDB (chromium side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang format to fix long lines Created 7 years, 1 month 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_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 9e7fdbb20006d655d24744e2115c45c1b033088a..8d6329326870f26042825f07609a68d5320c04d3 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -85,22 +85,16 @@ class IndexedDBDatabase::PendingSuccessCall {
public:
PendingSuccessCall(scoped_refptr<IndexedDBCallbacks> callbacks,
IndexedDBConnection* connection,
- int64 transaction_id,
int64 version)
- : callbacks_(callbacks),
- connection_(connection),
- version_(version),
- transaction_id_(transaction_id) {}
+ : callbacks_(callbacks), connection_(connection), version_(version) {}
scoped_refptr<IndexedDBCallbacks> Callbacks() { return callbacks_; }
IndexedDBConnection* Connection() { return connection_; }
int64 Version() { return version_; }
- int64 TransactionId() const { return transaction_id_; }
private:
scoped_refptr<IndexedDBCallbacks> callbacks_;
IndexedDBConnection* connection_;
int64 version_;
- const int64 transaction_id_;
};
class IndexedDBDatabase::PendingDeleteCall {
@@ -1258,8 +1252,8 @@ void IndexedDBDatabase::VersionChangeOperation(
return;
}
DCHECK(!pending_second_half_open_);
- pending_second_half_open_.reset(new PendingSuccessCall(
- callbacks, connection.get(), transaction->id(), version));
+ pending_second_half_open_.reset(
+ new PendingSuccessCall(callbacks, connection.get(), version));
callbacks->OnUpgradeNeeded(
old_version, connection.Pass(), metadata(), data_loss, data_loss_message);
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_context_impl.h ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698