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

Unified Diff: components/login/secure_module_util.h

Issue 2856683002: cros: Replace "TPM" with "secure module" for machines without TPM. (Closed)
Patch Set: Use IO thread to check files. Created 3 years, 7 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/login/secure_module_util.h
diff --git a/components/login/secure_module_util.h b/components/login/secure_module_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b063b988689a0f8b6308a9fda91877e4a959ed2
--- /dev/null
+++ b/components/login/secure_module_util.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENT_LOGIN_SECURE_MODULE_UTIL_H_
+#define COMPONENT_LOGIN_SECURE_MODULE_UTIL_H_
+
+#include "components/login/login_export.h"
+
+namespace login {
+
+enum class SecureModuleUsed {
+ UNQUERIED,
+ CR50,
+ TPM,
+};
+
+SecureModuleUsed LOGIN_EXPORT GetSecureModuleUsed();
+
+// Querys if this machine is using Cr50. Caches the result to avoid to many
+// unnecessary IO calls.
+void LOGIN_EXPORT QuerySecureModuleUsed();
+
+} // namespace login
+
+#endif // COMPONENT_LOGIN_SECURE_MODULE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698