| Index: chrome/browser/automation/automation_provider_observers.h
|
| diff --git a/chrome/browser/automation/automation_provider_observers.h b/chrome/browser/automation/automation_provider_observers.h
|
| index 6ba85aef6083ff29b597aa763306702e02dd4fdd..fec988a58d24942472fdf3add93bf04f88c5f824 100644
|
| --- a/chrome/browser/automation/automation_provider_observers.h
|
| +++ b/chrome/browser/automation/automation_provider_observers.h
|
| @@ -1246,20 +1246,21 @@ class OmniboxAcceptNotificationObserver : public content::NotificationObserver {
|
| };
|
|
|
| // Allows the automation provider to wait for a save package notification.
|
| -class SavePackageNotificationObserver : public content::NotificationObserver {
|
| +class SavePackageNotificationObserver
|
| +: public content::DownloadManager::Observer {
|
| public:
|
| SavePackageNotificationObserver(content::DownloadManager* download_manager,
|
| AutomationProvider* automation,
|
| IPC::Message* reply_message);
|
| virtual ~SavePackageNotificationObserver();
|
|
|
| - // Overridden from content::NotificationObserver:
|
| - virtual void Observe(int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) OVERRIDE;
|
| + // Overridden from content::DownloadManager::Observer:
|
| + virtual void OnSavePackageSuccessfullyFinished(
|
| + content::DownloadManager* manager, content::DownloadItem* item) OVERRIDE;
|
| + virtual void ManagerGoingDown(content::DownloadManager* manager) OVERRIDE;
|
|
|
| private:
|
| - content::NotificationRegistrar registrar_;
|
| + content::DownloadManager* download_manager_;
|
| base::WeakPtr<AutomationProvider> automation_;
|
| scoped_ptr<IPC::Message> reply_message_;
|
|
|
|
|