Chromium Code Reviews| Index: chrome/browser/chromeos/login/existing_user_controller.h |
| diff --git a/chrome/browser/chromeos/login/existing_user_controller.h b/chrome/browser/chromeos/login/existing_user_controller.h |
| index 61e941a26acaec2ec3cb4abeec2a8181fb55d804..18aa938793ec7e1577d65bf5a9b61faf5725ff79 100644 |
| --- a/chrome/browser/chromeos/login/existing_user_controller.h |
| +++ b/chrome/browser/chromeos/login/existing_user_controller.h |
| @@ -50,6 +50,11 @@ class ExistingUserController : public WmMessageListener::Observer, |
| ExistingUserController(const std::vector<UserManager::User>& users, |
| const gfx::Rect& background_bounds); |
| + // Returns the current existing user controller if it has been created. |
| + static ExistingUserController* current_controller() { |
| + return current_controller_; |
| + } |
| + |
| // Creates and shows the appropriate set of windows. |
| void Init(); |
| @@ -156,6 +161,10 @@ class ExistingUserController : public WmMessageListener::Observer, |
| // if there is no such instance. |
| static ExistingUserController* delete_scheduled_instance_; |
| + // Pointer to the current instance of the controller to be used by |
| + // automation tests. |
| + static ExistingUserController* current_controller_; |
|
Dmitry Polukhin
2010/12/14 14:06:18
Yeah one more static pointer to current controller
whywhat
2010/12/16 10:47:52
Done.
|
| + |
| // Pointer to shown message bubble. We don't need to delete it because |
| // it will be deleted on bubble closing. |
| MessageBubble* bubble_; |