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 3af3285b7dab6e2036dd6d655569ff69417b4aa5..2e54b54176f9f09a1b749a188024dc3d999d7fd1 100644 |
--- a/components/sync/engine_impl/get_updates_delegate.cc |
+++ b/components/sync/engine_impl/get_updates_delegate.cc |
@@ -14,7 +14,7 @@ namespace syncer { |
namespace { |
-void NonPassiveApplyUpdates(ModelTypeSet gu_types, |
+void NonPassiveApplyUpdates(const ModelTypeSet& gu_types, |
StatusController* status_controller, |
UpdateHandlerMap* update_handler_map) { |
for (const auto& kv : *update_handler_map) { |
@@ -24,7 +24,7 @@ void NonPassiveApplyUpdates(ModelTypeSet gu_types, |
} |
} |
-void PassiveApplyUpdates(ModelTypeSet gu_types, |
+void PassiveApplyUpdates(const ModelTypeSet& gu_types, |
StatusController* status_controller, |
UpdateHandlerMap* update_handler_map) { |
for (const auto& kv : *update_handler_map) { |
@@ -79,7 +79,7 @@ void NormalGetUpdatesDelegate::HelpPopulateGuMessage( |
} |
void NormalGetUpdatesDelegate::ApplyUpdates( |
- ModelTypeSet gu_types, |
+ const ModelTypeSet& gu_types, |
StatusController* status_controller, |
UpdateHandlerMap* update_handler_map) const { |
NonPassiveApplyUpdates(gu_types, status_controller, update_handler_map); |
@@ -105,7 +105,7 @@ void ConfigureGetUpdatesDelegate::HelpPopulateGuMessage( |
} |
void ConfigureGetUpdatesDelegate::ApplyUpdates( |
- ModelTypeSet gu_types, |
+ const ModelTypeSet& gu_types, |
StatusController* status_controller, |
UpdateHandlerMap* update_handler_map) const { |
PassiveApplyUpdates(gu_types, status_controller, update_handler_map); |
@@ -155,7 +155,7 @@ void PollGetUpdatesDelegate::HelpPopulateGuMessage( |
} |
void PollGetUpdatesDelegate::ApplyUpdates( |
- ModelTypeSet gu_types, |
+ const ModelTypeSet& gu_types, |
StatusController* status_controller, |
UpdateHandlerMap* update_handler_map) const { |
NonPassiveApplyUpdates(gu_types, status_controller, update_handler_map); |