| Index: content/browser/dom_storage/dom_storage_context_impl.cc
|
| diff --git a/content/browser/dom_storage/dom_storage_context_impl.cc b/content/browser/dom_storage/dom_storage_context_impl.cc
|
| index cd2cdbd49181b9fce9b888f912c708c41fc2096e..2479f8f8d50adaa0fc904ae0846fc2ca4cf1e234 100644
|
| --- a/content/browser/dom_storage/dom_storage_context_impl.cc
|
| +++ b/content/browser/dom_storage/dom_storage_context_impl.cc
|
| @@ -301,9 +301,8 @@ void DOMStorageContextImpl::NotifyItemSet(
|
| const base::string16& new_value,
|
| const base::NullableString16& old_value,
|
| const GURL& page_url) {
|
| - FOR_EACH_OBSERVER(
|
| - EventObserver, event_observers_,
|
| - OnDOMStorageItemSet(area, key, new_value, old_value, page_url));
|
| + for (auto& observer : event_observers_)
|
| + observer.OnDOMStorageItemSet(area, key, new_value, old_value, page_url);
|
| }
|
|
|
| void DOMStorageContextImpl::NotifyItemRemoved(
|
| @@ -311,17 +310,15 @@ void DOMStorageContextImpl::NotifyItemRemoved(
|
| const base::string16& key,
|
| const base::string16& old_value,
|
| const GURL& page_url) {
|
| - FOR_EACH_OBSERVER(
|
| - EventObserver, event_observers_,
|
| - OnDOMStorageItemRemoved(area, key, old_value, page_url));
|
| + for (auto& observer : event_observers_)
|
| + observer.OnDOMStorageItemRemoved(area, key, old_value, page_url);
|
| }
|
|
|
| void DOMStorageContextImpl::NotifyAreaCleared(
|
| const DOMStorageArea* area,
|
| const GURL& page_url) {
|
| - FOR_EACH_OBSERVER(
|
| - EventObserver, event_observers_,
|
| - OnDOMStorageAreaCleared(area, page_url));
|
| + for (auto& observer : event_observers_)
|
| + observer.OnDOMStorageAreaCleared(area, page_url);
|
| }
|
|
|
| int64_t DOMStorageContextImpl::AllocateSessionId() {
|
|
|