Index: chrome/browser/chromeos/extensions/file_browser_event_router.h |
diff --git a/chrome/browser/chromeos/extensions/file_browser_event_router.h b/chrome/browser/chromeos/extensions/file_browser_event_router.h |
index ebe4ebaac49e47ac47b91defe3f1ab221c09afc2..71f97193c09e6a2c2c101eb332d76e8312f03111 100644 |
--- a/chrome/browser/chromeos/extensions/file_browser_event_router.h |
+++ b/chrome/browser/chromeos/extensions/file_browser_event_router.h |
@@ -28,12 +28,10 @@ class SystemNotification; |
class ExtensionFileBrowserEventRouter |
: public chromeos::MountLibrary::Observer { |
public: |
- static ExtensionFileBrowserEventRouter* GetInstance(); |
+ explicit ExtensionFileBrowserEventRouter(Profile* profile); |
+ virtual ~ExtensionFileBrowserEventRouter(); |
- // Starts/stops observing file system change events. Currently only |
- // MountLibrary events are being observed. |
- void ObserveFileSystemEvents(Profile* profile); |
- void StopObservingFileSystemEvents(); |
+ void Init(); |
// File watch setup routines. |
bool AddFileWatch(const FilePath& file_path, |
@@ -49,7 +47,6 @@ class ExtensionFileBrowserEventRouter |
const std::string& device_path); |
private: |
- friend struct DefaultSingletonTraits<ExtensionFileBrowserEventRouter>; |
typedef std::map<std::string, linked_ptr<chromeos::SystemNotification> > |
NotificationMap; |
typedef std::map<std::string, std::string> MountPointMap; |
@@ -80,9 +77,6 @@ class ExtensionFileBrowserEventRouter |
void HandleFileWatchOnUIThread(const FilePath& local_path, bool got_error); |
}; |
- ExtensionFileBrowserEventRouter(); |
- virtual ~ExtensionFileBrowserEventRouter(); |
- |
// USB mount event handlers. |
void OnDiskAdded(const chromeos::MountLibrary::Disk* disk); |
void OnDiskRemoved(const chromeos::MountLibrary::Disk* disk); |