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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 10282: Only block alert() requests from blocked popups; not all popups.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/automation_provider.cc
===================================================================
--- chrome/browser/automation/automation_provider.cc (revision 5108)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -801,6 +801,8 @@
WaitForNavigation)
IPC_MESSAGE_HANDLER(AutomationMsg_SetIntPreferenceRequest,
SetIntPreference)
+ IPC_MESSAGE_HANDLER(AutomationMsg_ShowingAppModalDialogRequest,
+ GetShowingAppModalDialog)
IPC_END_MESSAGE_MAP()
}
@@ -1063,6 +1065,12 @@
message.routing_id(), static_cast<int>(BrowserList::size())));
}
+void AutomationProvider::GetShowingAppModalDialog(const IPC::Message& message) {
+ Send(new AutomationMsg_ShowingAppModalDialogResponse(
+ message.routing_id(),
+ static_cast<bool>(BrowserList::IsShowingAppModalDialog())));
+}
+
void AutomationProvider::GetBrowserWindow(const IPC::Message& message,
int index) {
int handle = 0;

Powered by Google App Engine
This is Rietveld 408576698