Index: chrome/browser/automation/automation_provider_observers.cc |
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc |
index a78d153457a519a415ef15e1646ab9d0214ed6a8..c2783d04bd6d89ffa1a1e9d686b7fac961de359a 100644 |
--- a/chrome/browser/automation/automation_provider_observers.cc |
+++ b/chrome/browser/automation/automation_provider_observers.cc |
@@ -2569,3 +2569,28 @@ void WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread() { |
automation_->Send(reply_message_.release()); |
Release(); |
} |
+ |
+DragTargetDropAckNotificationObserver::DragTargetDropAckNotificationObserver( |
+ AutomationProvider* automation, |
+ IPC::Message* reply_message) |
+ : automation_(automation->AsWeakPtr()), |
+ reply_message_(reply_message) { |
+ registrar_.Add( |
+ this, |
+ NotificationType::RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, |
+ NotificationService::AllSources()); |
+} |
+ |
+DragTargetDropAckNotificationObserver:: |
+ ~DragTargetDropAckNotificationObserver() {} |
+ |
+void DragTargetDropAckNotificationObserver::Observe( |
+ NotificationType type, |
+ const NotificationSource& source, |
+ const NotificationDetails& details) { |
+ if (automation_) { |
+ AutomationJSONReply(automation_, |
+ reply_message_.release()).SendSuccess(NULL); |
+ } |
+ delete this; |
+} |