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

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

Issue 10388175: Remove all the unnused automation IPCs. These were used by UI tests that have been converted to bro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/automation_provider_observers.cc
===================================================================
--- chrome/browser/automation/automation_provider_observers.cc (revision 137438)
+++ chrome/browser/automation/automation_provider_observers.cc (working copy)
@@ -904,30 +904,6 @@
}
}
-AppModalDialogShownObserver::AppModalDialogShownObserver(
- AutomationProvider* automation, IPC::Message* reply_message)
- : automation_(automation->AsWeakPtr()),
- reply_message_(reply_message) {
- registrar_.Add(this, chrome::NOTIFICATION_APP_MODAL_DIALOG_SHOWN,
- content::NotificationService::AllSources());
-}
-
-AppModalDialogShownObserver::~AppModalDialogShownObserver() {
-}
-
-void AppModalDialogShownObserver::Observe(
- int type, const content::NotificationSource& source,
- const content::NotificationDetails& details) {
- DCHECK(type == chrome::NOTIFICATION_APP_MODAL_DIALOG_SHOWN);
-
- if (automation_) {
- AutomationMsg_WaitForAppModalDialogToBeShown::WriteReplyParams(
- reply_message_.get(), true);
- automation_->Send(reply_message_.release());
- }
- delete this;
-}
-
namespace {
// Define mapping from command to notification

Powered by Google App Engine
This is Rietveld 408576698