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

Unified Diff: Source/modules/indexeddb/IDBIndex.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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
« no previous file with comments | « Source/modules/indexeddb/IDBFactory.cpp ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBIndex.cpp
diff --git a/Source/modules/indexeddb/IDBIndex.cpp b/Source/modules/indexeddb/IDBIndex.cpp
index 771b2adfbcb2dcaf5be5e7ce4e3d0a954f0e7051..0a7c9eba73192a28b94df8c64da51144118b020c 100644
--- a/Source/modules/indexeddb/IDBIndex.cpp
+++ b/Source/modules/indexeddb/IDBIndex.cpp
@@ -59,7 +59,7 @@ PassRefPtr<IDBRequest> IDBIndex::openCursor(ScriptExecutionContext* context, Pas
{
IDB_TRACE("IDBIndex::openCursor");
if (isDeleted()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
if (!m_transaction->isActive()) {
@@ -89,7 +89,7 @@ PassRefPtr<IDBRequest> IDBIndex::count(ScriptExecutionContext* context, PassRefP
{
IDB_TRACE("IDBIndex::count");
if (isDeleted()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
if (!m_transaction->isActive()) {
@@ -114,7 +114,7 @@ PassRefPtr<IDBRequest> IDBIndex::openKeyCursor(ScriptExecutionContext* context,
{
IDB_TRACE("IDBIndex::openKeyCursor");
if (isDeleted()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
if (!m_transaction->isActive()) {
@@ -153,7 +153,7 @@ PassRefPtr<IDBRequest> IDBIndex::get(ScriptExecutionContext* context, PassRefPtr
{
IDB_TRACE("IDBIndex::get");
if (isDeleted()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
if (!m_transaction->isActive()) {
@@ -184,7 +184,7 @@ PassRefPtr<IDBRequest> IDBIndex::getKey(ScriptExecutionContext* context, PassRef
{
IDB_TRACE("IDBIndex::getKey");
if (isDeleted()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
if (!m_transaction->isActive()) {
« no previous file with comments | « Source/modules/indexeddb/IDBFactory.cpp ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698