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

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

Issue 2737733003: Add Active Directory login UI tests (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/helper.h
diff --git a/chrome/browser/chromeos/login/helper.h b/chrome/browser/chromeos/login/helper.h
index cd27dc773f406c356b6cb5c9acee4a50aa2882fd..100e95041fe7aa9f39d079420c57fbbd1894444a 100644
--- a/chrome/browser/chromeos/login/helper.h
+++ b/chrome/browser/chromeos/login/helper.h
@@ -42,6 +42,16 @@ int GetCurrentUserImageSize();
// conflict with other chromeos components.
namespace login {
+// Possible error states of the Active Directory screen. Must be in the same
+// order as ACTIVE_DIRECTORY_ERROR_STATE enum values.
+enum ActiveDirectoryErrorState {
achuithb 2017/03/07 15:07:03 Can you make this an enum class since you're touch
Roman Sorokin (ftl) 2017/03/07 15:18:20 I'm not sure, it's needed in both enrollment_scree
achuithb 2017/03/07 15:28:50 How about moving it to enrollment_screen_handler.h
Roman Sorokin (ftl) 2017/03/07 16:32:05 That way gaia_screen_handler.cc does not see it
achuithb 2017/03/09 10:34:06 Why not include enrollment_screen_handler.h in gai
Roman Sorokin (ftl) 2017/03/22 15:19:25 Done.
+ ERROR_STATE_NONE = 0,
+ ERROR_STATE_MACHINE_NAME_INVALID = 1,
+ ERROR_STATE_MACHINE_NAME_TOO_LONG = 2,
+ ERROR_STATE_BAD_USERNAME = 3,
+ ERROR_STATE_BAD_PASSWORD = 4,
+};
+
// Maximum size of user image, in which it should be saved to be properly
// displayed under all possible DPI values.
const int kMaxUserImageSize = 512;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | chrome/browser/chromeos/login/login_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698