| Index: content/browser/in_process_webkit/dom_storage_area.cc
|
| diff --git a/content/browser/in_process_webkit/dom_storage_area.cc b/content/browser/in_process_webkit/dom_storage_area.cc
|
| index cb69f172ad2b2fa1cf4ffb5fde1552c01dea4de0..0327d1dd61fe3d8d96d92e0687269fe3c870a90b 100644
|
| --- a/content/browser/in_process_webkit/dom_storage_area.cc
|
| +++ b/content/browser/in_process_webkit/dom_storage_area.cc
|
| @@ -74,6 +74,14 @@ void DOMStorageArea::PurgeMemory() {
|
| storage_area_.reset();
|
| }
|
|
|
| +void DOMStorageArea::CopyDataTo(DOMStorageArea* other) {
|
| + for (unsigned i = 0; i < Length(); ++i) {
|
| + string16 key = Key(i).string();
|
| + WebStorageArea::Result result;
|
| + other->SetItem(key, GetItem(key).string(), &result);
|
| + }
|
| +}
|
| +
|
| void DOMStorageArea::CreateWebStorageAreaIfNecessary() {
|
| if (!storage_area_.get())
|
| storage_area_.reset(owner_->CreateWebStorageArea(origin_));
|
|
|