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

Side by Side Diff: sync/internal_api/public/util/experiments.h

Issue 14344002: Sync: Turn on full history sync by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use-after-free. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_UTIL_EXPERIMENTS_ 5 #ifndef SYNC_UTIL_EXPERIMENTS_
6 #define SYNC_UTIL_EXPERIMENTS_ 6 #define SYNC_UTIL_EXPERIMENTS_
7 7
8 #include "sync/internal_api/public/base/model_type.h" 8 #include "sync/internal_api/public/base/model_type.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 const char kKeystoreEncryptionTag[] = "keystore_encryption"; 12 const char kKeystoreEncryptionTag[] = "keystore_encryption";
13 const char kKeystoreEncryptionFlag[] = "sync-keystore-encryption"; 13 const char kKeystoreEncryptionFlag[] = "sync-keystore-encryption";
14 const char kAutofillCullingTag[] = "autofill_culling"; 14 const char kAutofillCullingTag[] = "autofill_culling";
15 const char kFullHistorySyncTag[] = "history_delete_directives";
16 const char kFullHistorySyncFlag[] = "full-history-sync";
17 const char kFaviconSyncTag[] = "favicon_sync"; 15 const char kFaviconSyncTag[] = "favicon_sync";
18 const char kFaviconSyncFlag[] = "enable-sync-favicons"; 16 const char kFaviconSyncFlag[] = "enable-sync-favicons";
19 17
20 // A structure to hold the enable status of experimental sync features. 18 // A structure to hold the enable status of experimental sync features.
21 struct Experiments { 19 struct Experiments {
22 Experiments() : keystore_encryption(false), 20 Experiments() : keystore_encryption(false),
23 autofill_culling(false), 21 autofill_culling(false),
24 full_history_sync(false),
25 favicon_sync(false), 22 favicon_sync(false),
26 favicon_sync_limit(200) {} 23 favicon_sync_limit(200) {}
27 24
28 bool Matches(const Experiments& rhs) { 25 bool Matches(const Experiments& rhs) {
29 return (keystore_encryption == rhs.keystore_encryption && 26 return (keystore_encryption == rhs.keystore_encryption &&
30 autofill_culling == rhs.autofill_culling && 27 autofill_culling == rhs.autofill_culling &&
31 full_history_sync == rhs.full_history_sync &&
32 favicon_sync == rhs.favicon_sync && 28 favicon_sync == rhs.favicon_sync &&
33 favicon_sync_limit == rhs.favicon_sync_limit); 29 favicon_sync_limit == rhs.favicon_sync_limit);
34 } 30 }
35 31
36 // Enable keystore encryption logic and the new encryption UI. 32 // Enable keystore encryption logic and the new encryption UI.
37 bool keystore_encryption; 33 bool keystore_encryption;
38 34
39 // Enable deletion of expired autofill entries (if autofill sync is enabled). 35 // Enable deletion of expired autofill entries (if autofill sync is enabled).
40 bool autofill_culling; 36 bool autofill_culling;
41 37
42 // Enable full history sync (and history delete directives) for this client.
43 bool full_history_sync;
44
45 // Enable the favicons sync datatypes (favicon images and favicon tracking). 38 // Enable the favicons sync datatypes (favicon images and favicon tracking).
46 bool favicon_sync; 39 bool favicon_sync;
47 40
48 // The number of favicons that a client is permitted to sync. 41 // The number of favicons that a client is permitted to sync.
49 int favicon_sync_limit; 42 int favicon_sync_limit;
50 }; 43 };
51 44
52 } // namespace syncer 45 } // namespace syncer
53 46
54 #endif // SYNC_UTIL_EXPERIMENTS_ 47 #endif // SYNC_UTIL_EXPERIMENTS_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698