summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webstoragearea_impl.h
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 04:16:43 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 04:16:43 +0000
commit99ddfd29900cc4caa1f1ffd979cc09be3f104336 (patch)
treedd3987a5578e15a27340a43c32027099050cfb8d /chrome/renderer/renderer_webstoragearea_impl.h
parent9c5645b5f8af3c04528caef61c59e2754f79288b (diff)
downloadchromium_src-99ddfd29900cc4caa1f1ffd979cc09be3f104336.zip
chromium_src-99ddfd29900cc4caa1f1ffd979cc09be3f104336.tar.gz
chromium_src-99ddfd29900cc4caa1f1ffd979cc09be3f104336.tar.bz2
The spec for ____storage.key() changed. Now, instead of raising an exception when you try to access a key
at an index that's greater than or equal to ___Storage.length, it simply returns a null. This is yet another demonstration of why we need a NullableString16 (rather than passing around a string and a bool) but this cannot block on that work. TEST=none BUG=none Review URL: http://codereview.chromium.org/165289 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23011 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webstoragearea_impl.h')
-rw-r--r--chrome/renderer/renderer_webstoragearea_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/renderer_webstoragearea_impl.h b/chrome/renderer/renderer_webstoragearea_impl.h
index 0a313c2..0b734e8 100644
--- a/chrome/renderer/renderer_webstoragearea_impl.h
+++ b/chrome/renderer/renderer_webstoragearea_impl.h
@@ -21,7 +21,7 @@ class RendererWebStorageAreaImpl : public WebKit::WebStorageArea {
virtual void lock(bool& invalidate_cache, size_t& bytes_left_in_quota);
virtual void unlock();
virtual unsigned length();
- virtual WebKit::WebString key(unsigned index, bool& key_exception);
+ virtual WebKit::WebString key(unsigned index);
virtual WebKit::WebString getItem(const WebKit::WebString& key);
virtual void setItem(const WebKit::WebString& key,
const WebKit::WebString& value,