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

Unified Diff: webkit/dom_storage/dom_storage_cached_area.cc

Issue 10533093: Implement WebStorageArea::containsItem(key) in chrome and drt/test_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
Index: webkit/dom_storage/dom_storage_cached_area.cc
===================================================================
--- webkit/dom_storage/dom_storage_cached_area.cc (revision 141450)
+++ webkit/dom_storage/dom_storage_cached_area.cc (working copy)
@@ -37,6 +37,12 @@
return map_->GetItem(key);
}
+bool DomStorageCachedArea::ContainsItem(
+ int connection_id, const string16& key) {
+ PrimeIfNeeded(connection_id);
+ return map_->ContainsItem(key);
+}
+
bool DomStorageCachedArea::SetItem(
int connection_id, const string16& key,
const string16& value, const GURL& page_url) {

Powered by Google App Engine
This is Rietveld 408576698