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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 4b72b179f4fbdbcb740b5638255cb4fcb166b4d4..af0299b953503f2c7c69d2580da708f882a4aaea 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -327,14 +327,6 @@ void ProfileSyncService::InitializeBackend(bool delete_stale_data) {
return;
}
- syncer::ModelTypeSet initial_types;
- // If sync setup hasn't finished, we don't want to initialize routing info
- // for any data types so that we don't download updates for types that the
- // user chooses not to sync on the first DownloadUpdatesCommand.
- if (HasSyncSetupCompleted()) {
- initial_types = GetPreferredDataTypes();
- }
-
SyncCredentials credentials = GetCredentials();
scoped_refptr<net::URLRequestContextGetter> request_context_getter(
@@ -351,7 +343,6 @@ void ProfileSyncService::InitializeBackend(bool delete_stale_data) {
this,
MakeWeakHandle(sync_js_controller_.AsWeakPtr()),
sync_service_url_,
- initial_types,
credentials,
delete_stale_data,
&sync_manager_factory_,
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_registrar_unittest.cc ('k') | chrome/browser/sync/test_profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698