Title: [136419] trunk/Source/WebKit/chromium
Revision
136419
Author
a...@chromium.org
Date
2012-12-03 11:07:28 -0800 (Mon, 03 Dec 2012)

Log Message

[Chromium] Fix issue with hard coded error codes in quota error
https://bugs.webkit.org/show_bug.cgi?id=103892

Reviewed by Darin Fisher.

Chromium currently hard codes the enum values for QuotaStatusCode. To fix
this we need to do a few iteration of changes. This is the first step and
it exposes the enums that Chromium depends on.

* public/WebStorageQuotaError.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (136418 => 136419)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-12-03 18:59:29 UTC (rev 136418)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-12-03 19:07:28 UTC (rev 136419)
@@ -1,3 +1,16 @@
+2012-12-03  Erik Arvidsson  <a...@chromium.org>
+
+        [Chromium] Fix issue with hard coded error codes in quota error
+        https://bugs.webkit.org/show_bug.cgi?id=103892
+
+        Reviewed by Darin Fisher.
+
+        Chromium currently hard codes the enum values for QuotaStatusCode. To fix
+        this we need to do a few iteration of changes. This is the first step and
+        it exposes the enums that Chromium depends on.
+
+        * public/WebStorageQuotaError.h:
+
 2012-12-03  Joshua Bell  <jsb...@chromium.org>
 
         IndexedDB: Rename exception enum members from UGLY_ERR to PrettyError

Modified: trunk/Source/WebKit/chromium/public/WebStorageQuotaError.h (136418 => 136419)


--- trunk/Source/WebKit/chromium/public/WebStorageQuotaError.h	2012-12-03 18:59:29 UTC (rev 136418)
+++ trunk/Source/WebKit/chromium/public/WebStorageQuotaError.h	2012-12-03 19:07:28 UTC (rev 136419)
@@ -36,6 +36,8 @@
 // The error code used for WebStorageQuota.
 enum WebStorageQuotaError {
     WebStorageQuotaErrorNotSupported = 9,
+    WebStorageQuotaErrorInvalidModification = 13,
+    WebStorageQuotaErrorInvalidAccess = 15,
     WebStorageQuotaErrorAbort = 20,
 };
 

Modified: trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp (136418 => 136419)


--- trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp	2012-12-03 18:59:29 UTC (rev 136418)
+++ trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp	2012-12-03 19:07:28 UTC (rev 136419)
@@ -541,13 +541,12 @@
 
 #if ENABLE(QUOTA)
 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorNotSupported, NOT_SUPPORTED_ERR);
+COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorInvalidModification, INVALID_MODIFICATION_ERR);
+COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorInvalidAccess, INVALID_ACCESS_ERR);
 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorAbort, ABORT_ERR);
 
 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaTypeTemporary, StorageInfo::TEMPORARY);
 COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaTypePersistent, StorageInfo::PERSISTENT);
-
-COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorNotSupported, NOT_SUPPORTED_ERR);
-COMPILE_ASSERT_MATCHING_ENUM(WebStorageQuotaErrorAbort, ABORT_ERR);
 #endif
 
 COMPILE_ASSERT_MATCHING_ENUM(WebPageVisibilityStateVisible, PageVisibilityStateVisible);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to