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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view.cc

Issue 374933003: Remove DispositionChangePhase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: 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:

Powered by Google App Engine
This is Rietveld 408576698