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

Unified Diff: Source/modules/indexeddb/IDBDatabase.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/IDBCursor.cpp ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBDatabase.cpp
diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp
index 73661b1d53df067e8177c7491db40af4064025b5..ae1311c0171d1e645c127a8c163bfedc6b3ef643 100644
--- a/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/Source/modules/indexeddb/IDBDatabase.cpp
@@ -174,7 +174,7 @@ PassRefPtr<IDBObjectStore> IDBDatabase::createObjectStore(const String& name, co
IDB_TRACE("IDBDatabase::createObjectStore");
HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBCreateObjectStoreCall, IDBMethodsMax);
if (!m_versionChangeTransaction) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
if (!m_versionChangeTransaction->isActive()) {
@@ -188,12 +188,12 @@ PassRefPtr<IDBObjectStore> IDBDatabase::createObjectStore(const String& name, co
}
if (!keyPath.isNull() && !keyPath.isValid()) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return 0;
}
if (autoIncrement && ((keyPath.type() == IDBKeyPath::StringType && keyPath.string().isEmpty()) || keyPath.type() == IDBKeyPath::ArrayType)) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return 0;
}
@@ -214,7 +214,7 @@ void IDBDatabase::deleteObjectStore(const String& name, ExceptionCode& ec)
IDB_TRACE("IDBDatabase::deleteObjectStore");
HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBDeleteObjectStoreCall, IDBMethodsMax);
if (!m_versionChangeTransaction) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return;
}
if (!m_versionChangeTransaction->isActive()) {
@@ -239,7 +239,7 @@ PassRefPtr<IDBTransaction> IDBDatabase::transaction(ScriptExecutionContext* cont
IDB_TRACE("IDBDatabase::transaction");
HistogramSupport::histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBTransactionCall, IDBMethodsMax);
if (!scope.size()) {
- ec = INVALID_ACCESS_ERR;
+ ec = InvalidAccessError;
return 0;
}
@@ -248,7 +248,7 @@ PassRefPtr<IDBTransaction> IDBDatabase::transaction(ScriptExecutionContext* cont
return 0;
if (m_versionChangeTransaction || m_closePending) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return 0;
}
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.cpp ('k') | Source/modules/indexeddb/IDBFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698