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

Unified Diff: components/sync/core/sync_encryption_handler.h

Issue 2279713002: Make PassphraseType a "enum class" instead of "enum". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix java Created 4 years, 4 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
Index: components/sync/core/sync_encryption_handler.h
diff --git a/components/sync/core/sync_encryption_handler.h b/components/sync/core/sync_encryption_handler.h
index 45aa304ef10f96a7697930ab8240c0c1855e9c81..3eb46046e9caefc4728d1e86c2b3512455df4be1 100644
--- a/components/sync/core/sync_encryption_handler.h
+++ b/components/sync/core/sync_encryption_handler.h
@@ -31,7 +31,7 @@ enum PassphraseRequiredReason {
// the user should be prompted for a decryption passphrase.
// Do not re-order or delete these entries; they are used in a UMA histogram.
// Please edit SyncPassphraseType in histograms.xml if a value is added.
-enum PassphraseType {
+enum class PassphraseType {
IMPLICIT_PASSPHRASE = 0, // GAIA-based passphrase (deprecated).
KEYSTORE_PASSPHRASE = 1, // Keystore passphrase.
FROZEN_IMPLICIT_PASSPHRASE = 2, // Frozen GAIA passphrase.

Powered by Google App Engine
This is Rietveld 408576698