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

Unified Diff: components/browser_sync/browser/profile_sync_service.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
Index: components/browser_sync/browser/profile_sync_service.cc
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index de2967759da13acf4d8862d9d13fac1583130f68..ee3c25a206b44c3969da263a72133f2a1728a6a4 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -1731,8 +1731,9 @@ syncer::ModelTypeSet ProfileSyncService::GetRegisteredDataTypes() const {
bool ProfileSyncService::IsUsingSecondaryPassphrase() const {
syncer::PassphraseType passphrase_type = GetPassphraseType();
- return passphrase_type == syncer::FROZEN_IMPLICIT_PASSPHRASE ||
- passphrase_type == syncer::CUSTOM_PASSPHRASE;
+ return passphrase_type ==
+ syncer::PassphraseType::FROZEN_IMPLICIT_PASSPHRASE ||
+ passphrase_type == syncer::PassphraseType::CUSTOM_PASSPHRASE;
}
std::string ProfileSyncService::GetCustomPassphraseKey() const {
« no previous file with comments | « chrome/browser/ui/webui/settings/people_handler_unittest.cc ('k') | components/sync/core/sync_encryption_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698