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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h

Issue 1767443002: Add enterprise enrollment support for fake users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Check instance before derefing it Created 4 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_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Implements BaseScreenHandler: 55 // Implements BaseScreenHandler:
56 void Initialize() override; 56 void Initialize() override;
57 void DeclareLocalizedValues( 57 void DeclareLocalizedValues(
58 ::login::LocalizedValuesBuilder* builder) override; 58 ::login::LocalizedValuesBuilder* builder) override;
59 59
60 // Implements NetworkStateInformer::NetworkStateInformerObserver 60 // Implements NetworkStateInformer::NetworkStateInformerObserver
61 void UpdateState(NetworkError::ErrorReason reason) override; 61 void UpdateState(NetworkError::ErrorReason reason) override;
62 62
63 private: 63 private:
64 // Handlers for WebUI messages. 64 // Handlers for WebUI messages.
65 void HandleToggleFakeEnrollment();
65 void HandleClose(const std::string& reason); 66 void HandleClose(const std::string& reason);
66 void HandleCompleteLogin(const std::string& user, 67 void HandleCompleteLogin(const std::string& user,
67 const std::string& auth_code); 68 const std::string& auth_code);
68 void HandleRetry(); 69 void HandleRetry();
69 void HandleFrameLoadingCompleted(); 70 void HandleFrameLoadingCompleted();
70 void HandleDeviceAttributesProvided(const std::string& asset_id, 71 void HandleDeviceAttributesProvided(const std::string& asset_id,
71 const std::string& location); 72 const std::string& location);
72 void HandleOnLearnMore(); 73 void HandleOnLearnMore();
73 74
74 void UpdateStateInternal(NetworkError::ErrorReason reason, bool force_update); 75 void UpdateStateInternal(NetworkError::ErrorReason reason, bool force_update);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 scoped_refptr<HelpAppLauncher> help_app_; 126 scoped_refptr<HelpAppLauncher> help_app_;
126 127
127 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; 128 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); 130 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler);
130 }; 131 };
131 132
132 } // namespace chromeos 133 } // namespace chromeos
133 134
134 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ 135 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698