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

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

Issue 24469004: Amusingly deprecate the generic version of 'ExceptionState::throwDOMException'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/mediasource/MediaSource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBObjectStore.cpp
diff --git a/Source/modules/indexeddb/IDBObjectStore.cpp b/Source/modules/indexeddb/IDBObjectStore.cpp
index abbd8c0e919d86ab91a1c44ddb3d80b6c2c42959..8f89c097becda82a8fee4ef443e0e8d5a972cb57 100644
--- a/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -157,7 +157,7 @@ PassRefPtr<IDBRequest> IDBObjectStore::put(IDBDatabaseBackendInterface::PutMode
return 0;
}
if (m_transaction->isReadOnly()) {
- es.throwDOMException(ReadOnlyError);
+ es.throwUninformativeAndGenericDOMException(ReadOnlyError);
return 0;
}
@@ -169,7 +169,7 @@ PassRefPtr<IDBRequest> IDBObjectStore::put(IDBDatabaseBackendInterface::PutMode
if (serializedValue->blobURLs().size() > 0) {
// FIXME: Add Blob/File/FileList support
- es.throwDOMException(DataCloneError);
+ es.throwUninformativeAndGenericDOMException(DataCloneError);
return 0;
}
@@ -245,7 +245,7 @@ PassRefPtr<IDBRequest> IDBObjectStore::deleteFunction(ScriptExecutionContext* co
return 0;
}
if (m_transaction->isReadOnly()) {
- es.throwDOMException(ReadOnlyError);
+ es.throwUninformativeAndGenericDOMException(ReadOnlyError);
return 0;
}
@@ -278,7 +278,7 @@ PassRefPtr<IDBRequest> IDBObjectStore::clear(ScriptExecutionContext* context, Ex
return 0;
}
if (m_transaction->isReadOnly()) {
- es.throwDOMException(ReadOnlyError);
+ es.throwUninformativeAndGenericDOMException(ReadOnlyError);
return 0;
}
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.cpp ('k') | Source/modules/mediasource/MediaSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698