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

Unified Diff: webkit/dom_storage/dom_storage_map.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_map.cc
===================================================================
--- webkit/dom_storage/dom_storage_map.cc (revision 141450)
+++ webkit/dom_storage/dom_storage_map.cc (working copy)
@@ -61,6 +61,10 @@
return found->second;
}
+bool DomStorageMap::ContainsItem(const string16& key) const {
+ return values_.find(key) != values_.end();
+}
+
bool DomStorageMap::SetItem(
const string16& key, const string16& value,
NullableString16* old_value) {

Powered by Google App Engine
This is Rietveld 408576698