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

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

Issue 2771803003: Don't start FRE from the login screen (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_AUTO_ENROLLMENT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Gets the auto-enrollment mode based on command-line flags and official 56 // Gets the auto-enrollment mode based on command-line flags and official
57 // build status. 57 // build status.
58 static Mode GetMode(); 58 static Mode GetMode();
59 59
60 AutoEnrollmentController(); 60 AutoEnrollmentController();
61 ~AutoEnrollmentController(); 61 ~AutoEnrollmentController();
62 62
63 // Starts the auto-enrollment check. 63 // Starts the auto-enrollment check.
64 void Start(); 64 void Start();
65 65
66 // Stops any pending auto-enrollment checking.
67 void Cancel();
68
69 // Retry checking. 66 // Retry checking.
70 void Retry(); 67 void Retry();
71 68
72 // Registers a callback to invoke on state changes. 69 // Registers a callback to invoke on state changes.
73 std::unique_ptr<ProgressCallbackList::Subscription> RegisterProgressCallback( 70 std::unique_ptr<ProgressCallbackList::Subscription> RegisterProgressCallback(
74 const ProgressCallbackList::CallbackType& callback); 71 const ProgressCallbackList::CallbackType& callback);
75 72
76 policy::AutoEnrollmentState state() const { return state_; } 73 policy::AutoEnrollmentState state() const { return state_; }
77 74
78 private: 75 private:
(...skipping 29 matching lines...) Expand all
108 FRERequirement fre_requirement_ = REQUIRED; 105 FRERequirement fre_requirement_ = REQUIRED;
109 106
110 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_; 107 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_;
111 108
112 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController); 109 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController);
113 }; 110 };
114 111
115 } // namespace chromeos 112 } // namespace chromeos
116 113
117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H _ 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698