summaryrefslogtreecommitdiffstats
path: root/sync/internal_api
diff options
context:
space:
mode:
authormaxbogue <maxbogue@chromium.org>2016-01-08 17:13:25 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-09 01:14:37 +0000
commitd6ca2ce7a4e4015fa4d1719d250c44a08d8f4747 (patch)
tree5c3e73b234c540f10e93419f2593304bbde4da47 /sync/internal_api
parent2b310e5ac855ddb1232d0aec667d50a30580728c (diff)
downloadchromium_src-d6ca2ce7a4e4015fa4d1719d250c44a08d8f4747.zip
chromium_src-d6ca2ce7a4e4015fa4d1719d250c44a08d8f4747.tar.gz
chromium_src-d6ca2ce7a4e4015fa4d1719d250c44a08d8f4747.tar.bz2
[Sync] Add metrics for how sync is turned off.
BUG=570390 Review URL: https://codereview.chromium.org/1566433002 Cr-Commit-Position: refs/heads/master@{#368496}
Diffstat (limited to 'sync/internal_api')
-rw-r--r--sync/internal_api/public/base/stop_source.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/sync/internal_api/public/base/stop_source.h b/sync/internal_api/public/base/stop_source.h
new file mode 100644
index 0000000..92850a0
--- /dev/null
+++ b/sync/internal_api/public/base/stop_source.h
@@ -0,0 +1,27 @@
+// Copyright 2015 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_BASE_STOP_SOURCE_H_
+#define SYNC_INTERNAL_API_PUBLIC_BASE_STOP_SOURCE_H_
+
+namespace syncer {
+
+// Enumerate the main sources that can turn off sync. This enum is used to
+// back a UMA histogram and should be treated as append-only.
+//
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.sync
+enum StopSource {
+ PROFILE_DESTRUCTION, // The user destroyed the profile.
+ SIGN_OUT, // The user signed out of Chrome.
+ BIRTHDAY_ERROR, // A dashboard stop-and-clear on the server.
+ CHROME_SYNC_SETTINGS, // The on/off switch in settings for mobile Chrome.
+ ANDROID_CHROME_SYNC, // Android's sync setting for Chrome.
+ ANDROID_MASTER_SYNC, // Android's master sync setting.
+ STOP_SOURCE_LIMIT,
+};
+
+} // namespace syncer
+
+#endif // SYNC_INTERNAL_API_PUBLIC_BASE_STOP_SOURCE_H_