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

Unified Diff: ui/chromeos/ime/input_method_menu_manager.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: 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
Index: ui/chromeos/ime/input_method_menu_manager.cc
diff --git a/ui/chromeos/ime/input_method_menu_manager.cc b/ui/chromeos/ime/input_method_menu_manager.cc
index f4032f83e7d793137a2b2b1e6d25ad43b6af6086..fbd8c98c20efdc5e7bc57c0f1c435e2293ee43f6 100644
--- a/ui/chromeos/ime/input_method_menu_manager.cc
+++ b/ui/chromeos/ime/input_method_menu_manager.cc
@@ -35,9 +35,8 @@ InputMethodMenuManager::GetCurrentInputMethodMenuItemList() const {
void InputMethodMenuManager::SetCurrentInputMethodMenuItemList(
const InputMethodMenuItemList& menu_list) {
menu_list_ = menu_list;
- FOR_EACH_OBSERVER(InputMethodMenuManager::Observer,
- observers_,
- InputMethodMenuItemChanged(this));
+ for (auto& observer : observers_)
+ observer.InputMethodMenuItemChanged(this);
}
bool InputMethodMenuManager::HasInputMethodMenuItemForKey(

Powered by Google App Engine
This is Rietveld 408576698