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

Side by Side Diff: chrome/browser/chromeos/login/screens/base_screen.h

Issue 2870203003: Make Hands-Off Zero-Touch Enrollment compatibile with tests (Closed)
Patch Set: 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_SCREENS_BASE_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // The method is called each time some key in screen context is 107 // The method is called each time some key in screen context is
108 // updated by JS side. Default implementation does nothing, so 108 // updated by JS side. Default implementation does nothing, so
109 // subclasses should override it in order to observe updates in 109 // subclasses should override it in order to observe updates in
110 // screen context. 110 // screen context.
111 virtual void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key); 111 virtual void OnContextKeyUpdated(const ::login::ScreenContext::KeyType& key);
112 112
113 // Returns scoped context editor. The editor or it's copies should not outlive 113 // Returns scoped context editor. The editor or it's copies should not outlive
114 // current BaseScreen instance. 114 // current BaseScreen instance.
115 ContextEditor GetContextEditor(); 115 ContextEditor GetContextEditor();
116 116
117 // Returns true if OOBE is operating under the
118 // Zero-Touch Hands-Off Enrollment Flow.
119 bool UsingHandsOffEnrollment();
120
117 BaseScreenDelegate* get_base_screen_delegate() const { 121 BaseScreenDelegate* get_base_screen_delegate() const {
118 return base_screen_delegate_; 122 return base_screen_delegate_;
119 } 123 }
120 124
121 ::login::ScreenContext context_; 125 ::login::ScreenContext context_;
122 126
123 private: 127 private:
124 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); 128 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel);
125 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess); 129 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess);
126 FRIEND_TEST_ALL_PREFIXES(AttestationAuthEnrollmentScreenTest, TestCancel); 130 FRIEND_TEST_ALL_PREFIXES(AttestationAuthEnrollmentScreenTest, TestCancel);
(...skipping 22 matching lines...) Expand all
149 BaseScreenDelegate* base_screen_delegate_ = nullptr; 153 BaseScreenDelegate* base_screen_delegate_ = nullptr;
150 154
151 const OobeScreen screen_id_; 155 const OobeScreen screen_id_;
152 156
153 DISALLOW_COPY_AND_ASSIGN(BaseScreen); 157 DISALLOW_COPY_AND_ASSIGN(BaseScreen);
154 }; 158 };
155 159
156 } // namespace chromeos 160 } // namespace chromeos
157 161
158 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 162 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698