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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 10235013: [Sync] Add support for automatic enabling of syncing tab favicons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 8 years, 8 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/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 42aed598fa0d2f182f5c658f5e70ef2c5f3c37d3..398881a1433b352a76b955fe26fd7a9c0d8bb491 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -46,6 +46,7 @@
#include "sync/protocol/encryption.pb.h"
#include "sync/protocol/sync.pb.h"
#include "sync/util/nigori.h"
+#include "sync/util/sync_experiments.h"
static const int kSaveChangesIntervalSeconds = 10;
static const FilePath::CharType kSyncDataFolderName[] =
@@ -1212,9 +1213,9 @@ void SyncBackendHost::Core::SaveChanges() {
void SyncBackendHost::AddExperimentalTypes() {
CHECK(initialized());
- syncable::ModelTypeSet to_add;
- if (core_->sync_manager()->ReceivedExperimentalTypes(&to_add))
- frontend_->OnDataTypesChanged(to_add);
+ SyncExperiments experiments;
+ if (core_->sync_manager()->ReceivedExperiment(&experiments))
+ frontend_->OnExperimentsChanged(experiments);
}
void SyncBackendHost::OnNigoriDownloadRetry() {

Powered by Google App Engine
This is Rietveld 408576698