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

Unified Diff: components/sync/engine_impl/get_updates_delegate.cc

Issue 2437873006: [Sync] Removed ScopdVector and raw news from ModelTypeRegistry. (Closed)
Patch Set: And removed the useless wrapping scoped_refptr. 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 | « no previous file | components/sync/engine_impl/model_type_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/get_updates_delegate.cc
diff --git a/components/sync/engine_impl/get_updates_delegate.cc b/components/sync/engine_impl/get_updates_delegate.cc
index 117ce89486a7b62a7b5bdf5bfb81acd72590f092..a5163858e3c03be258458919006f3ea6f54dac6f 100644
--- a/components/sync/engine_impl/get_updates_delegate.cc
+++ b/components/sync/engine_impl/get_updates_delegate.cc
@@ -17,20 +17,20 @@ namespace {
void NonPassiveApplyUpdates(ModelTypeSet gu_types,
StatusController* status_controller,
UpdateHandlerMap* update_handler_map) {
- for (UpdateHandlerMap::iterator it = update_handler_map->begin();
- it != update_handler_map->end(); ++it) {
- if (gu_types.Has(it->first))
- it->second->ApplyUpdates(status_controller);
+ for (const auto& kv : *update_handler_map) {
+ if (gu_types.Has(kv.first)) {
+ kv.second->ApplyUpdates(status_controller);
+ }
}
}
void PassiveApplyUpdates(ModelTypeSet gu_types,
StatusController* status_controller,
UpdateHandlerMap* update_handler_map) {
- for (UpdateHandlerMap::iterator it = update_handler_map->begin();
- it != update_handler_map->end(); ++it) {
- if (gu_types.Has(it->first))
- it->second->PassiveApplyUpdates(status_controller);
+ for (const auto& kv : *update_handler_map) {
+ if (gu_types.Has(kv.first)) {
+ kv.second->PassiveApplyUpdates(status_controller);
+ }
}
}
« no previous file with comments | « no previous file | components/sync/engine_impl/model_type_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698