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

Unified Diff: components/sync/core_impl/sync_encryption_handler_impl.cc

Issue 2279753003: Move definition of PasswordType enum to a separate header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@passphrase-type-enum-class
Patch Set: D2279753003 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_impl/sync_encryption_handler_impl.cc
diff --git a/components/sync/core_impl/sync_encryption_handler_impl.cc b/components/sync/core_impl/sync_encryption_handler_impl.cc
index 95c24e351c227ce7a181fbc505a89e9843d1bfa7..1f0b234a10cdcd48a698e360f5f1a46ba748909f 100644
--- a/components/sync/core_impl/sync_encryption_handler_impl.cc
+++ b/components/sync/core_impl/sync_encryption_handler_impl.cc
@@ -23,6 +23,7 @@
#include "components/sync/base/cryptographer.h"
#include "components/sync/base/encryptor.h"
#include "components/sync/base/experiments.h"
+#include "components/sync/base/passphrase_type.h"
#include "components/sync/base/time.h"
#include "components/sync/core/read_node.h"
#include "components/sync/core/read_transaction.h"
@@ -127,11 +128,6 @@ sync_pb::NigoriSpecifics::PassphraseType EnumPassphraseTypeToProto(
}
}
-bool IsExplicitPassphrase(PassphraseType type) {
- return type == PassphraseType::CUSTOM_PASSPHRASE ||
- type == PassphraseType::FROZEN_IMPLICIT_PASSPHRASE;
-}
-
// Keystore Bootstrap Token helper methods.
// The bootstrap is a base64 encoded, encrypted, ListValue of keystore key
// strings, with the current keystore key as the last value in the list.
« no previous file with comments | « components/sync/core_impl/js_sync_encryption_handler_observer_unittest.cc ('k') | components/sync/engine/sync_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698