diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-01 18:48:19 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-01 18:48:19 +0000 |
commit | 7b3ee8bf212b43ea15d46a390af411c689ba24a8 (patch) | |
tree | cb3125ddf1795edce4ca006568ce0ff73b9b16df /content/browser/plugin_service.cc | |
parent | 21453884c357a0845e994f4dd7323d2c9cc61192 (diff) | |
download | chromium_src-7b3ee8bf212b43ea15d46a390af411c689ba24a8.zip chromium_src-7b3ee8bf212b43ea15d46a390af411c689ba24a8.tar.gz chromium_src-7b3ee8bf212b43ea15d46a390af411c689ba24a8.tar.bz2 |
kqueue implementation of FilePathWatcher on Mac.
BUG=54822,77391,77217,77064,69641
TEST=BUILD
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80101
Review URL: http://codereview.chromium.org/6731064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_service.cc')
-rw-r--r-- | content/browser/plugin_service.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc index 46230c1..c604040 100644 --- a/content/browser/plugin_service.cc +++ b/content/browser/plugin_service.cc @@ -7,6 +7,7 @@ #include <vector> #include "base/command_line.h" +#include "base/compiler_specific.h" #include "base/path_service.h" #include "base/string_util.h" #include "base/synchronization/waitable_event.h" @@ -61,12 +62,12 @@ static void PurgePluginListCache(bool reload_pages) { #if defined(OS_LINUX) // Delegate class for monitoring directories. class PluginDirWatcherDelegate : public FilePathWatcher::Delegate { - virtual void OnFilePathChanged(const FilePath& path) { + virtual void OnFilePathChanged(const FilePath& path) OVERRIDE { VLOG(1) << "Watched path changed: " << path.value(); // Make the plugin list update itself webkit::npapi::PluginList::Singleton()->RefreshPlugins(); } - virtual void OnError() { + virtual void OnFilePathError(const FilePath& path) OVERRIDE { // TODO(pastarmovj): Add some sensible error handling. Maybe silently // stopping the watcher would be enough. Or possibly restart it. NOTREACHED(); @@ -549,8 +550,7 @@ void PluginService::RegisterFilePathWatcher( FilePathWatcher *watcher, const FilePath& path, FilePathWatcher::Delegate* delegate) { - bool result = watcher->Watch( - path, delegate, base::MessageLoopProxy::CreateForCurrentThread()); + bool result = watcher->Watch(path, delegate); DCHECK(result); } #endif |