Chromium Code Reviews| 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 033acf1bdb0afed8ac095651fea27a67148d0b1d..d46bbf038a298a13075cbefe850ebc8d0841b09a 100644 |
| --- a/content/browser/indexed_db/indexed_db_database.cc |
| +++ b/content/browser/indexed_db/indexed_db_database.cc |
| @@ -1596,7 +1596,7 @@ void IndexedDBDatabase::OpenConnection( |
| if (version == IndexedDBDatabaseMetadata::DEFAULT_INT_VERSION) { |
| // For unit tests only - skip upgrade steps. Calling from script with |
| // DEFAULT_INT_VERSION throws exception. |
| - DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)); |
|
jsbell
2013/06/26 17:40:33
This DCHECK actually landed in parallel with the t
|
| + // TODO(jsbell): DCHECK that not in unit tests. |
| DCHECK(is_new_database); |
| database_callbacks_set_.insert(database_callbacks); |
| callbacks->OnSuccess(this, this->metadata()); |
| @@ -1806,8 +1806,7 @@ void IndexedDBDatabase::Close( |
| backing_store_ = NULL; |
| // factory_ should only be null in unit tests. |
| - DCHECK(factory_ || |
| - !BrowserThread::CurrentlyOn(BrowserThread::WEBKIT_DEPRECATED)); |
|
jsbell
2013/06/26 17:40:33
Ditto.
|
| + // TODO(jsbell): DCHECK(factory_ || !in_unit_tests) - somehow. |
| if (factory_.get()) |
| factory_->RemoveIDBDatabaseBackend(identifier_); |
| } |