Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / sync / internal_api / public / util / experiments.h
blob16fa14972b2750c79c3f01308a63ea44f7445d75
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SYNC_UTIL_EXPERIMENTS_
6 #define SYNC_UTIL_EXPERIMENTS_
8 #include <string>
10 #include "sync/internal_api/public/base/model_type.h"
12 namespace syncer {
14 const char kFaviconSyncTag[] = "favicon_sync";
15 const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance";
16 const char kEnhancedBookmarksTag[] = "enhanced_bookmarks";
17 const char kGCMInvalidationsTag[] = "gcm_invalidations";
18 const char kWalletSyncTag[] = "wallet_sync";
20 // A structure to hold the enable status of experimental sync features.
21 struct Experiments {
22 Experiments()
23 : favicon_sync_limit(200),
24 enhanced_bookmarks_enabled(false),
25 gcm_invalidations_enabled(true), // By default GCM channel is enabled.
26 wallet_sync_enabled(false) {}
28 bool Matches(const Experiments& rhs) {
29 return (favicon_sync_limit == rhs.favicon_sync_limit &&
30 enhanced_bookmarks_enabled == rhs.enhanced_bookmarks_enabled &&
31 enhanced_bookmarks_ext_id == rhs.enhanced_bookmarks_ext_id &&
32 gcm_invalidations_enabled == rhs.gcm_invalidations_enabled &&
33 wallet_sync_enabled == rhs.wallet_sync_enabled);
36 // The number of favicons that a client is permitted to sync.
37 int favicon_sync_limit;
39 // Enable the enhanced bookmarks sync datatype.
40 bool enhanced_bookmarks_enabled;
42 // Enable invalidations over GCM channel.
43 bool gcm_invalidations_enabled;
45 // Enhanced bookmarks extension id.
46 std::string enhanced_bookmarks_ext_id;
48 // Enable the Wallet Autofill sync datatype.
49 bool wallet_sync_enabled;
52 } // namespace syncer
54 #endif // SYNC_UTIL_EXPERIMENTS_