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

Unified Diff: ui/aura/test/test_cursor_client.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/aura/test/test_cursor_client.cc
diff --git a/ui/aura/test/test_cursor_client.cc b/ui/aura/test/test_cursor_client.cc
index 123046cd450786524ddfd699c70dc803dbc3ca1e..1b581c623db7b7b9f58cd98b5217dc68a71f1ef9 100644
--- a/ui/aura/test/test_cursor_client.cc
+++ b/ui/aura/test/test_cursor_client.cc
@@ -33,14 +33,14 @@ gfx::NativeCursor TestCursorClient::GetCursor() const {
void TestCursorClient::ShowCursor() {
visible_ = true;
- FOR_EACH_OBSERVER(aura::client::CursorClientObserver, observers_,
- OnCursorVisibilityChanged(true));
+ for (auto& observer : observers_)
+ observer.OnCursorVisibilityChanged(true);
}
void TestCursorClient::HideCursor() {
visible_ = false;
- FOR_EACH_OBSERVER(aura::client::CursorClientObserver, observers_,
- OnCursorVisibilityChanged(false));
+ for (auto& observer : observers_)
+ observer.OnCursorVisibilityChanged(false);
}
void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) {

Powered by Google App Engine
This is Rietveld 408576698