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

Unified Diff: chrome/browser/ui/ime/ime_window.cc

Issue 2424853003: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/ui (Closed)
Patch Set: explicit types 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 | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ime/ime_window.cc
diff --git a/chrome/browser/ui/ime/ime_window.cc b/chrome/browser/ui/ime/ime_window.cc
index c23aa9b0b8d237b7fa368c47f04bab1e55d9a2f9..fc0148bcc04f2d92da979ad3f40ddad6e72cdba4 100644
--- a/chrome/browser/ui/ime/ime_window.cc
+++ b/chrome/browser/ui/ime/ime_window.cc
@@ -132,7 +132,8 @@ int ImeWindow::GetFrameId() const {
}
void ImeWindow::OnWindowDestroyed() {
- FOR_EACH_OBSERVER(ImeWindowObserver, observers_, OnWindowDestroyed(this));
+ for (ImeWindowObserver& observer : observers_)
+ observer.OnWindowDestroyed(this);
native_window_ = nullptr;
delete this;
}
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/libgtk2ui/gtk2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698