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

Unified Diff: components/arc/intent_helper/link_handler_model_impl.cc

Issue 2416633002: Remove FOR_EACH_OBSERVER from arc/ since it's being deprecated (Closed)
Patch Set: remove braces 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: components/arc/intent_helper/link_handler_model_impl.cc
diff --git a/components/arc/intent_helper/link_handler_model_impl.cc b/components/arc/intent_helper/link_handler_model_impl.cc
index 4c6f7382f6a040223c8564f5769edbe1dbd2cbf2..c20d20633ca170fb1094ccae1bcba2302d76a6a5 100644
--- a/components/arc/intent_helper/link_handler_model_impl.cc
+++ b/components/arc/intent_helper/link_handler_model_impl.cc
@@ -132,7 +132,8 @@ void LinkHandlerModelImpl::NotifyObserver(
ash::LinkHandlerInfo handler = {handlers_[i]->name.get(), icon, i};
handlers.push_back(handler);
}
- FOR_EACH_OBSERVER(Observer, observer_list_, ModelChanged(handlers));
+ for (auto& observer : observer_list_)
+ observer.ModelChanged(handlers);
}
// static

Powered by Google App Engine
This is Rietveld 408576698