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

Unified Diff: chrome/browser/chromeos/login/screens/host_pairing_screen_view.h

Issue 2771623002: Bootstrapping: Display meaningful enrollment error message on Slave device. (Closed)
Patch Set: Created 3 years, 9 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/screens/host_pairing_screen_view.h
diff --git a/chrome/browser/chromeos/login/screens/host_pairing_screen_view.h b/chrome/browser/chromeos/login/screens/host_pairing_screen_view.h
index 2958bba3b52457f214cde6b8a2c83590a9b5d31e..99a4decfe50fa764c7c68d1d35d497131f033eed 100644
--- a/chrome/browser/chromeos/login/screens/host_pairing_screen_view.h
+++ b/chrome/browser/chromeos/login/screens/host_pairing_screen_view.h
@@ -6,12 +6,19 @@
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_
#include "base/macros.h"
+#include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.h"
#include "chrome/browser/chromeos/login/oobe_screen.h"
namespace base {
class DictionaryValue;
}
+class GoogleServiceAuthError;
+
+namespace policy {
+class EnrollmentStatus;
+}
+
namespace chromeos {
namespace host_pairing {
@@ -24,6 +31,7 @@ extern const char kContextKeyDeviceName[];
extern const char kContextKeyConfirmationCode[];
extern const char kContextKeyEnrollmentDomain[];
extern const char kContextKeyUpdateProgress[];
+extern const char kContextKeyEnrollmentError[];
// Pages names.
extern const char kPageWelcome[];
@@ -58,6 +66,13 @@ class HostPairingScreenView {
virtual void SetDelegate(Delegate* delegate) = 0;
virtual void OnContextChanged(const base::DictionaryValue& diff) = 0;
+ virtual std::string GetErrorStringFromAuthError(
+ const GoogleServiceAuthError& error) = 0;
+ virtual std::string GetErrorStringFromEnrollmentError(
+ policy::EnrollmentStatus status) = 0;
+ virtual std::string GetErrorStringFromOtherError(
+ EnterpriseEnrollmentHelper::OtherError error) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(HostPairingScreenView);
};

Powered by Google App Engine
This is Rietveld 408576698