Index: chrome/browser/automation/automation_provider.cc |
=================================================================== |
--- chrome/browser/automation/automation_provider.cc (revision 17006) |
+++ chrome/browser/automation/automation_provider.cc (working copy) |
@@ -1342,7 +1342,8 @@ |
void AutomationProvider::GetShowingAppModalDialog(bool* showing_dialog, |
int* dialog_button) { |
- AppModalDialog* dialog_delegate = AppModalDialogQueue::active_dialog(); |
+ AppModalDialog* dialog_delegate = |
+ Singleton<AppModalDialogQueue>()->active_dialog(); |
*showing_dialog = (dialog_delegate != NULL); |
if (*showing_dialog) |
*dialog_button = dialog_delegate->GetDialogButtons(); |
@@ -1353,7 +1354,8 @@ |
void AutomationProvider::ClickAppModalDialogButton(int button, bool* success) { |
*success = false; |
- AppModalDialog* dialog_delegate = AppModalDialogQueue::active_dialog(); |
+ AppModalDialog* dialog_delegate = |
+ Singleton<AppModalDialogQueue>()->active_dialog(); |
if (dialog_delegate && |
(dialog_delegate->GetDialogButtons() & button) == button) { |
if ((button & MessageBoxFlags::DIALOGBUTTON_OK) == |