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

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

Issue 6902107: Merge 82987, 83304 - make sure that OEM tab is shown even if first login is Guest (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 // All UI initialization is deferred till Init() call. 49 // All UI initialization is deferred till Init() call.
50 explicit ExistingUserController(LoginDisplayHost* host); 50 explicit ExistingUserController(LoginDisplayHost* host);
51 ~ExistingUserController(); 51 ~ExistingUserController();
52 52
53 // Returns the current existing user controller if it has been created. 53 // Returns the current existing user controller if it has been created.
54 static ExistingUserController* current_controller() { 54 static ExistingUserController* current_controller() {
55 return current_controller_; 55 return current_controller_;
56 } 56 }
57 57
58 void set_initial_start_page(const std::string& url) {
59 initial_start_page_ = url;
60 }
61
62 // Creates and shows login UI for known users. 58 // Creates and shows login UI for known users.
63 void Init(const UserVector& users); 59 void Init(const UserVector& users);
64 60
65 // LoginDisplay::Delegate: implementation 61 // LoginDisplay::Delegate: implementation
66 virtual void CreateAccount() OVERRIDE; 62 virtual void CreateAccount() OVERRIDE;
67 virtual string16 GetConnectedNetworkName() OVERRIDE; 63 virtual string16 GetConnectedNetworkName() OVERRIDE;
68 virtual void FixCaptivePortal() OVERRIDE; 64 virtual void FixCaptivePortal() OVERRIDE;
69 virtual void Login(const std::string& username, 65 virtual void Login(const std::string& username,
70 const std::string& password) OVERRIDE; 66 const std::string& password) OVERRIDE;
71 virtual void LoginAsGuest() OVERRIDE; 67 virtual void LoginAsGuest() OVERRIDE;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Pointer to the current instance of the controller to be used by 144 // Pointer to the current instance of the controller to be used by
149 // automation tests. 145 // automation tests.
150 static ExistingUserController* current_controller_; 146 static ExistingUserController* current_controller_;
151 147
152 // Triggers prefetching of user settings. 148 // Triggers prefetching of user settings.
153 scoped_ptr<UserCrosSettingsProvider> user_settings_; 149 scoped_ptr<UserCrosSettingsProvider> user_settings_;
154 150
155 // URL to append to start Guest mode with. 151 // URL to append to start Guest mode with.
156 GURL guest_mode_url_; 152 GURL guest_mode_url_;
157 153
158 // URL to open on first owner login from OEM customization manifest.
159 std::string initial_start_page_;
160
161 // Used for user image changed notifications. 154 // Used for user image changed notifications.
162 NotificationRegistrar registrar_; 155 NotificationRegistrar registrar_;
163 156
164 // Factory of callbacks. 157 // Factory of callbacks.
165 ScopedRunnableMethodFactory<ExistingUserController> method_factory_; 158 ScopedRunnableMethodFactory<ExistingUserController> method_factory_;
166 159
167 // Whether everything is ready to launch the browser. 160 // Whether everything is ready to launch the browser.
168 bool ready_for_browser_launch_; 161 bool ready_for_browser_launch_;
169 162
170 // Whether two factor credentials were used. 163 // Whether two factor credentials were used.
171 bool two_factor_credentials_; 164 bool two_factor_credentials_;
172 165
173 // Used to verify ownership before starting enterprise enrollment. 166 // Used to verify ownership before starting enterprise enrollment.
174 scoped_ptr<OwnershipStatusChecker> ownership_checker_; 167 scoped_ptr<OwnershipStatusChecker> ownership_checker_;
175 168
176 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin); 169 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, NewUserLogin);
177 170
178 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 171 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
179 }; 172 };
180 173
181 } // namespace chromeos 174 } // namespace chromeos
182 175
183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 176 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/eula_view.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698