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

Unified Diff: sync/internal_api/public/util/experiments.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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/public/user_share.h ('k') | sync/internal_api/public/util/immutable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/util/experiments.h
diff --git a/sync/internal_api/public/util/experiments.h b/sync/internal_api/public/util/experiments.h
deleted file mode 100644
index a0adf84df6b52a8a2fbeaec77fc7068ed1794051..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/util/experiments.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_INTERNAL_API_PUBLIC_UTIL_EXPERIMENTS_H_
-#define SYNC_INTERNAL_API_PUBLIC_UTIL_EXPERIMENTS_H_
-
-#include <string>
-
-#include "sync/internal_api/public/base/model_type.h"
-
-namespace syncer {
-
-const char kFaviconSyncTag[] = "favicon_sync";
-const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance";
-const char kGCMInvalidationsTag[] = "gcm_invalidations";
-
-// A structure to hold the enable status of experimental sync features.
-struct Experiments {
- Experiments()
- : favicon_sync_limit(200),
- // By default GCM channel is enabled:
- gcm_invalidations_enabled(true) {}
-
- bool Matches(const Experiments& rhs) {
- return (favicon_sync_limit == rhs.favicon_sync_limit &&
- gcm_invalidations_enabled == rhs.gcm_invalidations_enabled);
- }
-
- // The number of favicons that a client is permitted to sync.
- int favicon_sync_limit;
-
- // Enable invalidations over GCM channel.
- bool gcm_invalidations_enabled;
-};
-
-} // namespace syncer
-
-#endif // SYNC_INTERNAL_API_PUBLIC_UTIL_EXPERIMENTS_H_
« no previous file with comments | « sync/internal_api/public/user_share.h ('k') | sync/internal_api/public/util/immutable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698