Index: webkit/dom_storage/dom_storage_area.cc |
=================================================================== |
--- webkit/dom_storage/dom_storage_area.cc (revision 133033) |
+++ webkit/dom_storage/dom_storage_area.cc (working copy) |
@@ -71,6 +71,16 @@ |
DomStorageArea::~DomStorageArea() { |
} |
+void DomStorageArea::ExtractValues(ValuesMap* map) { |
+ if (is_shutdown_) |
+ return; |
+ InitialImportIfNeeded(); |
+ ValuesMap current_values; |
+ map_->SwapValues(¤t_values); |
ericu
2012/04/20 23:36:00
As discussed, SwapValues leads to too much account
michaeln
2012/04/20 23:42:19
Yup, done.
|
+ *map = current_values; |
+ map_->SwapValues(¤t_values); |
+} |
+ |
unsigned DomStorageArea::Length() { |
if (is_shutdown_) |
return 0; |