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

Unified Diff: sync/engine/sync_scheduler_impl.cc

Issue 10905045: [Sync] Pass ModelTypeSet by value everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 4 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 | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_impl.cc
diff --git a/sync/engine/sync_scheduler_impl.cc b/sync/engine/sync_scheduler_impl.cc
index dab9b1bcb76e4fa549e5b3ffd7647ff3325afb34..195eda41358592f11d3ee9ad7e9c839cbd3fa598 100644
--- a/sync/engine/sync_scheduler_impl.cc
+++ b/sync/engine/sync_scheduler_impl.cc
@@ -69,7 +69,7 @@ ConfigurationParams::ConfigurationParams()
: source(GetUpdatesCallerInfo::UNKNOWN) {}
ConfigurationParams::ConfigurationParams(
const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& source,
- const ModelTypeSet& types_to_download,
+ ModelTypeSet types_to_download,
const ModelSafeRoutingInfo& routing_info,
const base::Closure& ready_task)
: source(source),
@@ -294,7 +294,7 @@ namespace {
// Helper to extract the routing info and workers corresponding to types in
// |types| from |current_routes| and |current_workers|.
void BuildModelSafeParams(
- const ModelTypeSet& types_to_download,
+ ModelTypeSet types_to_download,
const ModelSafeRoutingInfo& current_routes,
const std::vector<ModelSafeWorker*>& current_workers,
ModelSafeRoutingInfo* result_routes,
« no previous file with comments | « sync/engine/sync_scheduler.h ('k') | sync/engine/sync_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698