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

Unified Diff: components/sync_driver/glue/sync_backend_host_impl.cc

Issue 1848793006: [Sync] Register USS types with ModelTypeRegistry before download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: components/sync_driver/glue/sync_backend_host_impl.cc
diff --git a/components/sync_driver/glue/sync_backend_host_impl.cc b/components/sync_driver/glue/sync_backend_host_impl.cc
index 2e73078c631da29a7deb487a7cd535e55003937e..5beabf266c6a05f44c8307fd3b69d86a5a15d611 100644
--- a/components/sync_driver/glue/sync_backend_host_impl.cc
+++ b/components/sync_driver/glue/sync_backend_host_impl.cc
@@ -4,7 +4,9 @@
#include "components/sync_driver/glue/sync_backend_host_impl.h"
+#include <map>
#include <utility>
+#include <vector>
#include "base/command_line.h"
#include "base/location.h"
@@ -439,6 +441,7 @@ void SyncBackendHostImpl::DeactivateDirectoryDataType(syncer::ModelType type) {
void SyncBackendHostImpl::ActivateNonBlockingDataType(
syncer::ModelType type,
scoped_ptr<syncer_v2::ActivationContext> activation_context) {
+ registrar_->RegisterNonBlockingType(type);
sync_context_proxy_->ConnectTypeToSync(type, std::move(activation_context));
}

Powered by Google App Engine
This is Rietveld 408576698