| Index: mojo/services/public/cpp/view_manager/lib/view.cc
|
| diff --git a/mojo/services/public/cpp/view_manager/lib/view.cc b/mojo/services/public/cpp/view_manager/lib/view.cc
|
| index 4bcedfce0808a25e082ad798037aa0f993c88066..43f2f4046af760cbe02154a61305943965d151a0 100644
|
| --- a/mojo/services/public/cpp/view_manager/lib/view.cc
|
| +++ b/mojo/services/public/cpp/view_manager/lib/view.cc
|
| @@ -18,16 +18,14 @@ class ScopedDestructionNotifier {
|
| public:
|
| explicit ScopedDestructionNotifier(View* view)
|
| : view_(view) {
|
| - FOR_EACH_OBSERVER(
|
| - ViewObserver,
|
| - *ViewPrivate(view_).observers(),
|
| - OnViewDestroy(view_, ViewObserver::DISPOSITION_CHANGING));
|
| + FOR_EACH_OBSERVER(ViewObserver,
|
| + *ViewPrivate(view_).observers(),
|
| + OnViewDestroying(view_));
|
| }
|
| ~ScopedDestructionNotifier() {
|
| - FOR_EACH_OBSERVER(
|
| - ViewObserver,
|
| - *ViewPrivate(view_).observers(),
|
| - OnViewDestroy(view_, ViewObserver::DISPOSITION_CHANGED));
|
| + FOR_EACH_OBSERVER(ViewObserver,
|
| + *ViewPrivate(view_).observers(),
|
| + OnViewDestroyed(view_));
|
| }
|
|
|
| private:
|
|
|