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

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

Issue 2894783003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)
Patch Set: Make Hands-Off Zero-Touch Enrollment compatibile with tests Created 3 years, 7 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // If true zero delays have been enabled (for browser tests). 78 // If true zero delays have been enabled (for browser tests).
79 static bool IsZeroDelayEnabled(); 79 static bool IsZeroDelayEnabled();
80 80
81 // Checks whether screen show time should be tracked with UMA. 81 // Checks whether screen show time should be tracked with UMA.
82 static bool IsOOBEStepToTrack(OobeScreen screen_id); 82 static bool IsOOBEStepToTrack(OobeScreen screen_id);
83 83
84 // Skips any screens that may normally be shown after login (registration, 84 // Skips any screens that may normally be shown after login (registration,
85 // Terms of Service, user image selection). 85 // Terms of Service, user image selection).
86 static void SkipPostLoginScreensForTesting(); 86 static void SkipPostLoginScreensForTesting();
87 87
88 // Returns true if OOBE is operating under the
89 // Zero-Touch Hands-Off Enrollment Flow.
90 static bool UsingHandsOffEnrollment();
91
88 // Shows the first screen defined by |first_screen| or by default if the 92 // Shows the first screen defined by |first_screen| or by default if the
89 // parameter is empty. 93 // parameter is empty.
90 void Init(OobeScreen first_screen); 94 void Init(OobeScreen first_screen);
91 95
92 // Advances to screen defined by |screen| and shows it. 96 // Advances to screen defined by |screen| and shows it.
93 void AdvanceToScreen(OobeScreen screen); 97 void AdvanceToScreen(OobeScreen screen);
94 98
95 // Advances to login screen. Should be used in for testing only. 99 // Advances to login screen. Should be used in for testing only.
96 void SkipToLoginForTesting(const LoginScreenContext& context); 100 void SkipToLoginForTesting(const LoginScreenContext& context);
97 101
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 BaseScreen* hid_screen_ = nullptr; 426 BaseScreen* hid_screen_ = nullptr;
423 427
424 base::WeakPtrFactory<WizardController> weak_factory_; 428 base::WeakPtrFactory<WizardController> weak_factory_;
425 429
426 DISALLOW_COPY_AND_ASSIGN(WizardController); 430 DISALLOW_COPY_AND_ASSIGN(WizardController);
427 }; 431 };
428 432
429 } // namespace chromeos 433 } // namespace chromeos
430 434
431 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 435 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/startup_utils.cc ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698