| Index: chrome/browser/chromeos/extensions/file_manager/event_router.h
|
| diff --git a/chrome/browser/chromeos/extensions/file_manager/event_router.h b/chrome/browser/chromeos/extensions/file_manager/event_router.h
|
| index 9e4fe679c526c66b30945615383f8fe4c3dea930..0987601b171ec6384e1a21aa1b54b3d2752c3907 100644
|
| --- a/chrome/browser/chromeos/extensions/file_manager/event_router.h
|
| +++ b/chrome/browser/chromeos/extensions/file_manager/event_router.h
|
| @@ -52,7 +52,8 @@ class EventRouter : public chromeos::NetworkStateHandlerObserver,
|
| public drive::FileSystemObserver,
|
| public drive::JobListObserver,
|
| public drive::DriveServiceObserver,
|
| - public VolumeManagerObserver {
|
| + public VolumeManagerObserver,
|
| + public content::NotificationObserver {
|
| public:
|
| explicit EventRouter(Profile* profile);
|
| virtual ~EventRouter();
|
| @@ -126,6 +127,11 @@ class EventRouter : public chromeos::NetworkStateHandlerObserver,
|
| virtual void OnFormatCompleted(
|
| const std::string& device_path, bool success) OVERRIDE;
|
|
|
| + // content::NotificationObserver overrides.
|
| + virtual void Observe(int type,
|
| + const content::NotificationSource& source,
|
| + const content::NotificationDetails& details) OVERRIDE;
|
| +
|
| private:
|
| typedef std::map<base::FilePath, FileWatcher*> WatcherMap;
|
|
|
| @@ -197,6 +203,8 @@ class EventRouter : public chromeos::NetworkStateHandlerObserver,
|
| scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
|
| Profile* profile_;
|
|
|
| + content::NotificationRegistrar notification_registrar_;
|
| +
|
| scoped_ptr<DeviceEventRouter> device_event_router_;
|
|
|
| // Note: This should remain the last member so it'll be destroyed and
|
|
|