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

Unified Diff: chrome/browser/chromeos/login/hwid_checker.h

Issue 12213110: Implemented screen notifying users about malformed HWID. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Implemented wizard controller test. Created 7 years, 10 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: chrome/browser/chromeos/login/hwid_checker.h
diff --git a/chrome/browser/chromeos/login/hwid_checker.h b/chrome/browser/chromeos/login/hwid_checker.h
new file mode 100644
index 0000000000000000000000000000000000000000..a40df7aee2b30bb6967146cbd7c18aa1114d9a72
--- /dev/null
+++ b/chrome/browser/chromeos/login/hwid_checker.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_LOGIN_HWID_CHECKER_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_HWID_CHECKER_H_
+
+#include <string>
+
+namespace chromeos {
+
+// Calculates checksum for given string as it made for HWID v1 and v2.
+std::string CalculateHWIDChecksum(const std::string& data);
+
+// Checks if given HWID correct in terms of HWID v1 or v2.
+bool IsHWIDCorrect(const std::string& hwid);
+
+// Checks if current machine has correct HWID v1 or v2.
+bool IsMachineHWIDCorrect();
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_HWID_CHECKER_H_
+
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/hwid_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698