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

Unified Diff: components/exo/surface.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: remove superfluous return Created 4 years, 2 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
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.cc ('k') | components/exo/wm_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index 5f22ec6fd64ad5a361039368515743886f0a1530..8c0efb7909a8aede879c2c828d69e6f4c72479b5 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -225,7 +225,8 @@ Surface::Surface()
Surface::~Surface() {
aura::Env::GetInstance()->context_factory()->RemoveObserver(this);
- FOR_EACH_OBSERVER(SurfaceObserver, observers_, OnSurfaceDestroying(this));
+ for (SurfaceObserver& observer : observers_)
+ observer.OnSurfaceDestroying(this);
window_->layer()->SetShowSolidColorContent();
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.cc ('k') | components/exo/wm_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698