Index: chrome/browser/sync/profile_sync_components_factory_impl.cc |
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc |
index 73ac3b589c717be4d2af35b731f21394997a4677..c71e48549377517dcd3384e54bf90d348db93b6d 100644 |
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc |
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc |
@@ -146,6 +146,18 @@ syncer::ModelTypeSet GetDisabledTypesFromCommandLine( |
syncer::ModelTypeSet disabled_types; |
std::string disabled_types_str = |
command_line.GetSwitchValueASCII(switches::kDisableSyncTypes); |
+ |
+ // Disable sync types experimentally to measure impact on startup time. |
+ // TODO(mlerman): Remove this after the experiment. crbug.com/454788 |
+ std::string disable_types_finch = |
+ variations::GetVariationParamValue("LightSpeed", "DisableSyncPart"); |
+ if (!disable_types_finch.empty()) { |
+ if (disabled_types_str.empty()) |
+ disabled_types_str = disable_types_finch; |
+ else |
+ disabled_types_str += ", " + disable_types_finch; |
+ } |
+ |
disabled_types = syncer::ModelTypeSetFromString(disabled_types_str); |
return disabled_types; |
} |