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

Unified Diff: sync/internal_api/public/sync_encryption_handler.h

Issue 779093002: Add the Sync.PassphraseType histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/sync_encryption_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/sync_encryption_handler.h
diff --git a/sync/internal_api/public/sync_encryption_handler.h b/sync/internal_api/public/sync_encryption_handler.h
index cd1cfc04f02c498f5972abab79dd363584ce3cdf..a939aa83634a7802d22919b1e9aa54a1708fdd13 100644
--- a/sync/internal_api/public/sync_encryption_handler.h
+++ b/sync/internal_api/public/sync_encryption_handler.h
@@ -40,6 +40,8 @@ enum PassphraseType {
CUSTOM_PASSPHRASE = 3, // User-provided passphrase.
};
+const int PASSPHRASE_TYPE_SIZE = 4;
Alexei Svitkine (slow) 2014/12/04 19:57:06 Usually, this is put inside the enum at the end, s
maxbogue 2014/12/04 21:14:24 I thought about doing that, but it might affect co
Nicolas Zea 2014/12/05 00:53:19 I'm fine with adding a NUM_PASSPHRASE_TYPES enum,
maxbogue 2014/12/05 18:58:59 Done. It all compiled.
+
// Enum used to distinguish which bootstrap encryption token is being updated.
enum BootstrapTokenType {
PASSPHRASE_BOOTSTRAP_TOKEN,
« no previous file with comments | « no previous file | sync/internal_api/sync_encryption_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698