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

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

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space 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 | « ui/chromeos/ime/candidate_window_view.cc ('k') | ui/chromeos/network/network_icon_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..08c053f79988d0ad42147bac90714189bdafad94 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 (InputMethodMenuManager::Observer& observer : observers_)
+ observer.InputMethodMenuItemChanged(this);
}
bool InputMethodMenuManager::HasInputMethodMenuItemForKey(
« no previous file with comments | « ui/chromeos/ime/candidate_window_view.cc ('k') | ui/chromeos/network/network_icon_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698