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

Unified Diff: chrome/browser/extensions/window_controller_list.cc

Issue 2422963002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/extensions (Closed)
Patch Set: extensions 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/extensions/tab_helper.cc ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/window_controller_list.cc
diff --git a/chrome/browser/extensions/window_controller_list.cc b/chrome/browser/extensions/window_controller_list.cc
index e497308ae3a4663c389cf58cf0844126238c74a8..b37d735932db6fccba38bdf23d762c7ea81f58b9 100644
--- a/chrome/browser/extensions/window_controller_list.cc
+++ b/chrome/browser/extensions/window_controller_list.cc
@@ -32,8 +32,8 @@ WindowControllerList::~WindowControllerList() {
void WindowControllerList::AddExtensionWindow(WindowController* window) {
windows_.push_back(window);
- FOR_EACH_OBSERVER(WindowControllerListObserver, observers_,
- OnWindowControllerAdded(window));
+ for (auto& observer : observers_)
+ observer.OnWindowControllerAdded(window);
}
void WindowControllerList::RemoveExtensionWindow(WindowController* window) {
@@ -41,8 +41,8 @@ void WindowControllerList::RemoveExtensionWindow(WindowController* window) {
windows_.begin(), windows_.end(), window);
if (iter != windows_.end()) {
windows_.erase(iter);
- FOR_EACH_OBSERVER(WindowControllerListObserver, observers_,
- OnWindowControllerRemoved(window));
+ for (auto& observer : observers_)
+ observer.OnWindowControllerRemoved(window);
}
}
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698