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

Unified Diff: Source/modules/webdatabase/SQLResultSet.cpp

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/webdatabase/SQLResultSet.h ('k') | Source/modules/webdatabase/SQLTransaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/SQLResultSet.cpp
diff --git a/Source/modules/webdatabase/SQLResultSet.cpp b/Source/modules/webdatabase/SQLResultSet.cpp
index 0fb72d7fe4e9a84ef874ed6f6aab9b13b8dc037b..7985a8edb6da8202bd40a866d99aa6887983d73e 100644
--- a/Source/modules/webdatabase/SQLResultSet.cpp
+++ b/Source/modules/webdatabase/SQLResultSet.cpp
@@ -29,7 +29,6 @@
#include "config.h"
#include "modules/webdatabase/SQLResultSet.h"
-#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
namespace WebCore {
@@ -45,14 +44,14 @@ SQLResultSet::SQLResultSet()
ScriptWrappable::init(this);
}
-int64_t SQLResultSet::insertId(ExceptionState& es) const
+int64_t SQLResultSet::insertId(ExceptionCode& ec) const
{
// 4.11.4 - Return the id of the last row inserted as a result of the query
// If the query didn't result in any rows being added, raise an InvalidAccessError exception
if (m_insertIdSet)
return m_insertId;
- es.throwDOMException(InvalidAccessError);
+ ec = InvalidAccessError;
return -1;
}
« no previous file with comments | « Source/modules/webdatabase/SQLResultSet.h ('k') | Source/modules/webdatabase/SQLTransaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698