Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_connection.cc |
| diff --git a/content/browser/indexed_db/indexed_db_connection.cc b/content/browser/indexed_db/indexed_db_connection.cc |
| index c2c7ebd266df6df2f445818775ad260965660cbb..08faceecd27ccade002c239da25246a7fb8ae8cb 100644 |
| --- a/content/browser/indexed_db/indexed_db_connection.cc |
| +++ b/content/browser/indexed_db/indexed_db_connection.cc |
| @@ -12,10 +12,18 @@ namespace content { |
| IndexedDBConnection::IndexedDBConnection( |
| scoped_refptr<IndexedDBDatabase> database, |
| scoped_refptr<IndexedDBDatabaseCallbacks> callbacks) |
| - : database_(database), callbacks_(callbacks), weak_factory_(this) {} |
| + : id_(kInvalidId), |
|
jsbell
2016/07/11 18:25:33
This can have the default initialization in the he
palakj1
2016/07/11 22:25:40
Done.
|
| + database_(database), |
| + callbacks_(callbacks), |
| + weak_factory_(this) {} |
| IndexedDBConnection::~IndexedDBConnection() {} |
| +void IndexedDBConnection::setId(int32_t id) { |
| + DCHECK_EQ(id_, kInvalidId); |
| + id_ = id; |
| +} |
| + |
| void IndexedDBConnection::Close() { |
| if (!callbacks_.get()) |
| return; |