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

Unified Diff: components/sync/engine/sync_string_conversions.cc

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
« no previous file with comments | « components/sync/engine/sync_status.cc ('k') | components/sync/test/fake_sync_encryption_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/sync_string_conversions.cc
diff --git a/components/sync/engine/sync_string_conversions.cc b/components/sync/engine/sync_string_conversions.cc
index dfd9e2414a12f13f4474001bcfd41baf9c48d51c..bdcc6413ffc9fff6ddd0ba8699b65e4d6fbc8c92 100644
--- a/components/sync/engine/sync_string_conversions.cc
+++ b/components/sync/engine/sync_string_conversions.cc
@@ -35,10 +35,10 @@ const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason) {
const char* PassphraseTypeToString(PassphraseType type) {
switch (type) {
- ENUM_CASE(IMPLICIT_PASSPHRASE);
- ENUM_CASE(KEYSTORE_PASSPHRASE);
- ENUM_CASE(FROZEN_IMPLICIT_PASSPHRASE);
- ENUM_CASE(CUSTOM_PASSPHRASE);
+ ENUM_CASE(PassphraseType::IMPLICIT_PASSPHRASE);
+ ENUM_CASE(PassphraseType::KEYSTORE_PASSPHRASE);
+ ENUM_CASE(PassphraseType::FROZEN_IMPLICIT_PASSPHRASE);
+ ENUM_CASE(PassphraseType::CUSTOM_PASSPHRASE);
default:
NOTREACHED();
return "INVALID_PASSPHRASE_TYPE";
« no previous file with comments | « components/sync/engine/sync_status.cc ('k') | components/sync/test/fake_sync_encryption_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698