summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 13:56:47 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-17 13:56:47 +0000
commitb7d5744cbf30d6b9c5d20b9c09dcfa0896cf31ae (patch)
tree3b5f6aa13d996b6dd4530bb0ea7bf872b86549e9 /chrome/renderer
parenteb393118511e2dd348a70e855154a3709d8a5a3f (diff)
downloadchromium_src-b7d5744cbf30d6b9c5d20b9c09dcfa0896cf31ae.zip
chromium_src-b7d5744cbf30d6b9c5d20b9c09dcfa0896cf31ae.tar.gz
chromium_src-b7d5744cbf30d6b9c5d20b9c09dcfa0896cf31ae.tar.bz2
Fix IndexedDB. My last CL had a bug in it.
TEST=none BUG=none Review URL: http://codereview.chromium.org/3463001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_webidbcursor_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_webidbcursor_impl.cc b/chrome/renderer/renderer_webidbcursor_impl.cc
index 88affd1..12f6df8 100644
--- a/chrome/renderer/renderer_webidbcursor_impl.cc
+++ b/chrome/renderer/renderer_webidbcursor_impl.cc
@@ -45,9 +45,9 @@ void RendererWebIDBCursorImpl::value(
RenderThread::current()->Send(
new ViewHostMsg_IDBCursorValue(idb_cursor_id_, &scriptValue,
&key));
- DCHECK(scriptValue.is_null());
+ // Only one or the other type should have been "returned" to us.
+ DCHECK(scriptValue.is_null() != (key.type() == WebIDBKey::InvalidType));
webScriptValue = scriptValue;
- DCHECK(key.type() == WebIDBKey::InvalidType);
webKey = key;
}