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

Unified Diff: Source/WebKit/chromium/src/StorageAreaProxy.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/WebKit/chromium/src/AssertMatchingEnums.cpp ('k') | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/StorageAreaProxy.cpp
diff --git a/Source/WebKit/chromium/src/StorageAreaProxy.cpp b/Source/WebKit/chromium/src/StorageAreaProxy.cpp
index 5c7a2231c8dda1912a99b27d6dcb2c71965d7d17..e6c656df98d21509612fdf5602f60ae2c4d2b148 100644
--- a/Source/WebKit/chromium/src/StorageAreaProxy.cpp
+++ b/Source/WebKit/chromium/src/StorageAreaProxy.cpp
@@ -64,7 +64,7 @@ StorageAreaProxy::~StorageAreaProxy()
unsigned StorageAreaProxy::length(ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return 0;
}
ec = 0;
@@ -74,7 +74,7 @@ unsigned StorageAreaProxy::length(ExceptionCode& ec, Frame* frame)
String StorageAreaProxy::key(unsigned index, ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return String();
}
ec = 0;
@@ -84,7 +84,7 @@ String StorageAreaProxy::key(unsigned index, ExceptionCode& ec, Frame* frame)
String StorageAreaProxy::getItem(const String& key, ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return String();
}
ec = 0;
@@ -94,7 +94,7 @@ String StorageAreaProxy::getItem(const String& key, ExceptionCode& ec, Frame* fr
void StorageAreaProxy::setItem(const String& key, const String& value, ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return;
}
WebKit::WebStorageArea::Result result = WebKit::WebStorageArea::ResultOK;
@@ -105,7 +105,7 @@ void StorageAreaProxy::setItem(const String& key, const String& value, Exception
void StorageAreaProxy::removeItem(const String& key, ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return;
}
ec = 0;
@@ -115,7 +115,7 @@ void StorageAreaProxy::removeItem(const String& key, ExceptionCode& ec, Frame* f
void StorageAreaProxy::clear(ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return;
}
ec = 0;
@@ -125,7 +125,7 @@ void StorageAreaProxy::clear(ExceptionCode& ec, Frame* frame)
bool StorageAreaProxy::contains(const String& key, ExceptionCode& ec, Frame* frame)
{
if (!canAccessStorage(frame)) {
- ec = SECURITY_ERR;
+ ec = SecurityError;
return false;
}
return !getItem(key, ec, frame).isNull();
« no previous file with comments | « Source/WebKit/chromium/src/AssertMatchingEnums.cpp ('k') | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698