Chromium Code Reviews| Index: Source/modules/indexeddb/IDBRequest.cpp |
| diff --git a/Source/modules/indexeddb/IDBRequest.cpp b/Source/modules/indexeddb/IDBRequest.cpp |
| index 16992b32ade0174816e1f35db0e4ff8a6bd849fd..79776879392b9c32e3fb1358c6c62aa96db355be 100644 |
| --- a/Source/modules/indexeddb/IDBRequest.cpp |
| +++ b/Source/modules/indexeddb/IDBRequest.cpp |
| @@ -303,7 +303,7 @@ void IDBRequest::onSuccess(PassRefPtr<SharedBuffer> valueBuffer, PassOwnPtr<Vect |
| onSuccessInternal(IDBAny::create(valueBuffer, m_blobInfo.get())); |
| } |
| -#ifndef NDEBUG |
| +#if ENABLE(ASSERT) |
| static IDBObjectStore* effectiveObjectStore(IDBAny* source) |
| { |
| if (source->type() == IDBAny::IDBObjectStoreType) |
| @@ -322,7 +322,7 @@ void IDBRequest::onSuccess(PassRefPtr<SharedBuffer> prpValueBuffer, PassOwnPtr<V |
| if (!shouldEnqueueEvent()) |
| return; |
| -#ifndef NDEBUG |
| +#if ENABLE(ASSERT) |
|
jsbell
2014/07/16 00:03:16
Looks like we can remove this #if guard now?
Ken Russell (switch to Gerrit)
2014/07/16 00:05:46
Sure. Will remove in a subsequent version of this
|
| ASSERT(keyPath == effectiveObjectStore(m_source)->metadata().keyPath); |
| #endif |
| @@ -331,7 +331,7 @@ void IDBRequest::onSuccess(PassRefPtr<SharedBuffer> prpValueBuffer, PassOwnPtr<V |
| ASSERT(!m_blobInfo.get()); |
| m_blobInfo = blobInfo; |
| -#ifndef NDEBUG |
| +#if ENABLE(ASSERT) |
| assertPrimaryKeyValidOrInjectable(m_scriptState.get(), valueBuffer, m_blobInfo.get(), primaryKey, keyPath); |
| #endif |