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

Unified Diff: sync/api/attachments/attachment_store.h

Issue 751313005: Add the Sync.Attachments.StoreInitResult histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add explicit enum values and increase the SIZE constant to 10. Created 6 years 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 | « no previous file | sync/internal_api/attachments/on_disk_attachment_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment_store.h
diff --git a/sync/api/attachments/attachment_store.h b/sync/api/attachments/attachment_store.h
index d6d0d3953b34115e2463bae23a93b1172d106bdc..b2897231d09aaa25cd78993fef239e7760b8a9cf 100644
--- a/sync/api/attachments/attachment_store.h
+++ b/sync/api/attachments/attachment_store.h
@@ -33,11 +33,15 @@ class SYNC_EXPORT AttachmentStoreBase {
// TODO(maniscalco): Consider udpating Read and Write methods to support
// resumable transfers (bug 353292).
+ // The result status of an attachment store operation.
+ // Do not re-order or delete these entries; they are used in a UMA histogram.
enum Result {
- SUCCESS, // No error, all completed successfully.
- UNSPECIFIED_ERROR, // An unspecified error occurred for one or more items.
- STORE_INITIALIZATION_FAILED, // AttachmentStore initialization failed.
+ SUCCESS = 0, // No error, all completed successfully.
+ UNSPECIFIED_ERROR = 1, // An unspecified error occurred for >= 1 item.
+ STORE_INITIALIZATION_FAILED = 2, // AttachmentStore initialization failed.
+ // When adding a value here, you must increment RESULT_SIZE below.
};
+ const int RESULT_SIZE = 10; // Size of the Result enum; used for histograms.
typedef base::Callback<void(const Result&)> InitCallback;
typedef base::Callback<void(const Result&,
« no previous file with comments | « no previous file | sync/internal_api/attachments/on_disk_attachment_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698