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

Unified Diff: sync/internal_api/public/internal_components_factory.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/internal_api/internal_components_factory_impl.cc ('k') | sync/internal_api/public/util/experiments.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/internal_components_factory.h
diff --git a/sync/internal_api/public/internal_components_factory.h b/sync/internal_api/public/internal_components_factory.h
index 6b79ddd2f936f0065a528b16cd570c0039f1da13..96fd6407378151d2adfea0ea279fdc8ea0f96ef8 100644
--- a/sync/internal_api/public/internal_components_factory.h
+++ b/sync/internal_api/public/internal_components_factory.h
@@ -50,6 +50,16 @@ class SYNC_EXPORT InternalComponentsFactory {
BACKOFF_SHORT_INITIAL_RETRY_OVERRIDE
};
+ enum PreCommitUpdatesPolicy {
+ // By default, the server will enable or disable this experiment through the
+ // sync protocol's experiments data type.
+ SERVER_CONTROLLED_PRE_COMMIT_UPDATE_AVOIANCE,
+
+ // This flag overrides the server's decision and enables the pre-commit
+ // update avoidance experiment.
+ FORCE_ENABLE_PRE_COMMIT_UPDATE_AVOIDANCE,
+ };
+
// Configuration options for internal components. This struct is expected
// to grow and shrink over time with transient features / experiments,
// roughly following command line flags in chrome. Implementations of
@@ -58,6 +68,7 @@ class SYNC_EXPORT InternalComponentsFactory {
struct Switches {
EncryptionMethod encryption_method;
BackoffOverride backoff_override;
+ PreCommitUpdatesPolicy pre_commit_updates_policy;
};
virtual ~InternalComponentsFactory() {}
« no previous file with comments | « sync/internal_api/internal_components_factory_impl.cc ('k') | sync/internal_api/public/util/experiments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698