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

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

Issue 19309002: sync: Add pre-commit update avoidance mode + flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 kAutofillCullingTag[] = "autofill_culling"; 12 const char kAutofillCullingTag[] = "autofill_culling";
13 const char kFaviconSyncTag[] = "favicon_sync"; 13 const char kFaviconSyncTag[] = "favicon_sync";
14 const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance";
14 15
15 // A structure to hold the enable status of experimental sync features. 16 // A structure to hold the enable status of experimental sync features.
16 struct Experiments { 17 struct Experiments {
17 Experiments() : autofill_culling(false), 18 Experiments() : autofill_culling(false),
18 favicon_sync_limit(200) {} 19 favicon_sync_limit(200) {}
19 20
20 bool Matches(const Experiments& rhs) { 21 bool Matches(const Experiments& rhs) {
21 return (autofill_culling == rhs.autofill_culling && 22 return (autofill_culling == rhs.autofill_culling &&
22 favicon_sync_limit == rhs.favicon_sync_limit); 23 favicon_sync_limit == rhs.favicon_sync_limit);
23 } 24 }
24 25
25 // Enable deletion of expired autofill entries (if autofill sync is enabled). 26 // Enable deletion of expired autofill entries (if autofill sync is enabled).
26 bool autofill_culling; 27 bool autofill_culling;
27 28
28 // The number of favicons that a client is permitted to sync. 29 // The number of favicons that a client is permitted to sync.
29 int favicon_sync_limit; 30 int favicon_sync_limit;
30 }; 31 };
31 32
32 } // namespace syncer 33 } // namespace syncer
33 34
34 #endif // SYNC_UTIL_EXPERIMENTS_ 35 #endif // SYNC_UTIL_EXPERIMENTS_
OLDNEW
« no previous file with comments | « sync/internal_api/public/internal_components_factory.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698