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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h

Issue 385983007: Enrollment recovery: Add UMA stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UMA_HISTOGRAM_ENUMERATION() call. Created 6 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 // are not covered by GoogleServiceAuthError or EnrollmentStatus. 22 // are not covered by GoogleServiceAuthError or EnrollmentStatus.
23 enum UIError { 23 enum UIError {
24 // Existing enrollment domain doesn't match authentication user. 24 // Existing enrollment domain doesn't match authentication user.
25 UI_ERROR_DOMAIN_MISMATCH, 25 UI_ERROR_DOMAIN_MISMATCH,
26 // Requested device mode not supported with auto enrollment. 26 // Requested device mode not supported with auto enrollment.
27 UI_ERROR_AUTO_ENROLLMENT_BAD_MODE, 27 UI_ERROR_AUTO_ENROLLMENT_BAD_MODE,
28 // Unexpected error condition, indicates a bug in the code. 28 // Unexpected error condition, indicates a bug in the code.
29 UI_ERROR_FATAL, 29 UI_ERROR_FATAL,
30 }; 30 };
31 31
32 // Describes the enrollment mode. 32 // Describes the enrollment mode. Must be kept in sync with
33 // |kEnrollmentModes| in enrollment_screen_handler.cc.
33 enum EnrollmentMode { 34 enum EnrollmentMode {
34 ENROLLMENT_MODE_MANUAL, // Manually triggered enrollment. 35 ENROLLMENT_MODE_MANUAL, // Manually triggered enrollment.
35 ENROLLMENT_MODE_FORCED, // Forced enrollment, user can't skip. 36 ENROLLMENT_MODE_FORCED, // Forced enrollment, user can't skip.
36 ENROLLMENT_MODE_AUTO, // Auto-enrollment during first sign-in. 37 ENROLLMENT_MODE_AUTO, // Auto-enrollment during first sign-in.
38 ENROLLMENT_MODE_RECOVERY, // Recover from "spontaneous unenrollment".
39 ENROLLMENT_MODE_COUNT // Counter must be last. Not an enrollment mode.
37 }; 40 };
38 41
39 // This defines the interface for controllers which will be called back when 42 // This defines the interface for controllers which will be called back when
40 // something happens on the UI. 43 // something happens on the UI.
41 class Controller { 44 class Controller {
42 public: 45 public:
43 virtual ~Controller() {} 46 virtual ~Controller() {}
44 47
45 virtual void OnLoginDone(const std::string& user) = 0; 48 virtual void OnLoginDone(const std::string& user) = 0;
46 virtual void OnAuthError(const GoogleServiceAuthError& error) = 0; 49 virtual void OnAuthError(const GoogleServiceAuthError& error) = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Show non-authentication error. 91 // Show non-authentication error.
89 virtual void ShowUIError(UIError error) = 0; 92 virtual void ShowUIError(UIError error) = 0;
90 93
91 // Update the UI to report the |status| of the enrollment procedure. 94 // Update the UI to report the |status| of the enrollment procedure.
92 virtual void ShowEnrollmentStatus(policy::EnrollmentStatus status) = 0; 95 virtual void ShowEnrollmentStatus(policy::EnrollmentStatus status) = 0;
93 }; 96 };
94 97
95 } // namespace chromeos 98 } // namespace chromeos
96 99
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_ 100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_ACTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/enrollment/enrollment_screen.cc ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698