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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.h

Issue 2771803003: Don't start FRE from the login screen (Closed)
Patch Set: Improve comments Created 3 years, 8 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_WIZARD_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 class PrefService; 32 class PrefService;
33 33
34 namespace pairing_chromeos { 34 namespace pairing_chromeos {
35 class ControllerPairingController; 35 class ControllerPairingController;
36 class HostPairingController; 36 class HostPairingController;
37 class SharkConnectionListener; 37 class SharkConnectionListener;
38 } 38 }
39 39
40 namespace chromeos { 40 namespace chromeos {
41 41
42 class AutoEnrollmentController;
42 class ErrorScreen; 43 class ErrorScreen;
43 struct Geoposition; 44 struct Geoposition;
44 class LoginDisplayHost; 45 class LoginDisplayHost;
45 class LoginScreenContext; 46 class LoginScreenContext;
46 class OobeUI; 47 class OobeUI;
47 class SimpleGeolocationProvider; 48 class SimpleGeolocationProvider;
48 class TimeZoneProvider; 49 class TimeZoneProvider;
49 struct TimeZoneResponseData; 50 struct TimeZoneResponseData;
50 51
51 // Class that manages control flow between wizard screens. Wizard controller 52 // Class that manages control flow between wizard screens. Wizard controller
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 void OnSetHostNetworkSuccessful(); 300 void OnSetHostNetworkSuccessful();
300 void OnSetHostNetworkFailed(); 301 void OnSetHostNetworkFailed();
301 302
302 // Start the enrollment screen using the config from 303 // Start the enrollment screen using the config from
303 // |prescribed_enrollment_config_|. If |force_interactive| is true, 304 // |prescribed_enrollment_config_|. If |force_interactive| is true,
304 // the user will be presented with a manual enrollment screen requiring 305 // the user will be presented with a manual enrollment screen requiring
305 // Gaia credentials. If it is false, the screen may return after trying 306 // Gaia credentials. If it is false, the screen may return after trying
306 // attestation-based enrollment if appropriate. 307 // attestation-based enrollment if appropriate.
307 void StartEnrollmentScreen(bool force_interactive); 308 void StartEnrollmentScreen(bool force_interactive);
308 309
310 // Returns auto enrollment controller (lazily initializes one if it doesn't
311 // exist already).
312 AutoEnrollmentController* GetAutoEnrollmentController();
313
314 std::unique_ptr<AutoEnrollmentController> auto_enrollment_controller_;
309 std::unique_ptr<ScreenManager> screen_manager_; 315 std::unique_ptr<ScreenManager> screen_manager_;
310 316
311 // Whether to skip any screens that may normally be shown after login 317 // Whether to skip any screens that may normally be shown after login
312 // (registration, Terms of Service, user image selection). 318 // (registration, Terms of Service, user image selection).
313 static bool skip_post_login_screens_; 319 static bool skip_post_login_screens_;
314 320
315 static bool zero_delay_enabled_; 321 static bool zero_delay_enabled_;
316 322
317 // Screen that's currently active. 323 // Screen that's currently active.
318 BaseScreen* current_screen_ = nullptr; 324 BaseScreen* current_screen_ = nullptr;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 379
374 // Indicates that once image selection screen finishes we should return to 380 // Indicates that once image selection screen finishes we should return to
375 // a previous screen instead of proceeding with usual flow. 381 // a previous screen instead of proceeding with usual flow.
376 bool user_image_screen_return_to_previous_hack_ = false; 382 bool user_image_screen_return_to_previous_hack_ = false;
377 383
378 // Non-owning pointer to local state used for testing. 384 // Non-owning pointer to local state used for testing.
379 static PrefService* local_state_for_testing_; 385 static PrefService* local_state_for_testing_;
380 386
381 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); 387 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel);
382 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); 388 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators);
389 FRIEND_TEST_ALL_PREFIXES(WizardControllerDeviceStateTest,
390 ControlFlowNoForcedReEnrollmentOnFirstBoot);
391 friend class WizardControllerBrokenLocalStateTest;
392 friend class WizardControllerDeviceStateTest;
383 friend class WizardControllerFlowTest; 393 friend class WizardControllerFlowTest;
384 friend class WizardControllerOobeResumeTest; 394 friend class WizardControllerOobeResumeTest;
385 friend class WizardInProcessBrowserTest; 395 friend class WizardInProcessBrowserTest;
386 friend class WizardControllerBrokenLocalStateTest;
387 396
388 std::unique_ptr<AccessibilityStatusSubscription> accessibility_subscription_; 397 std::unique_ptr<AccessibilityStatusSubscription> accessibility_subscription_;
389 398
390 std::unique_ptr<SimpleGeolocationProvider> geolocation_provider_; 399 std::unique_ptr<SimpleGeolocationProvider> geolocation_provider_;
391 std::unique_ptr<TimeZoneProvider> timezone_provider_; 400 std::unique_ptr<TimeZoneProvider> timezone_provider_;
392 401
393 // Pairing controller for shark devices. 402 // Pairing controller for shark devices.
394 std::unique_ptr<pairing_chromeos::ControllerPairingController> 403 std::unique_ptr<pairing_chromeos::ControllerPairingController>
395 shark_controller_; 404 shark_controller_;
396 405
(...skipping 16 matching lines...) Expand all
413 BaseScreen* hid_screen_ = nullptr; 422 BaseScreen* hid_screen_ = nullptr;
414 423
415 base::WeakPtrFactory<WizardController> weak_factory_; 424 base::WeakPtrFactory<WizardController> weak_factory_;
416 425
417 DISALLOW_COPY_AND_ASSIGN(WizardController); 426 DISALLOW_COPY_AND_ASSIGN(WizardController);
418 }; 427 };
419 428
420 } // namespace chromeos 429 } // namespace chromeos
421 430
422 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 431 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/mock_login_display_host.h ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698