| Index: content/browser/plugin_service.cc
|
| diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc
|
| index 68e6942499561fb207d7a5fbe18f07f23d53fbde..61abe9a1e748532e94723f1f2c558de73373375b 100644
|
| --- a/content/browser/plugin_service.cc
|
| +++ b/content/browser/plugin_service.cc
|
| @@ -38,6 +38,10 @@
|
| #include "chrome/browser/chromeos/plugin_selection_policy.h"
|
| #endif
|
|
|
| +#if defined(OS_LINUX)
|
| +using ::base::files::FilePathWatcher;
|
| +#endif
|
| +
|
| #if defined(OS_MACOSX)
|
| static void NotifyPluginsOfActivation() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| @@ -148,7 +152,6 @@ PluginService::PluginService()
|
| &plugin_dirs);
|
|
|
| for (size_t i = 0; i < plugin_dirs.size(); ++i) {
|
| - FilePathWatcher* watcher = new FilePathWatcher();
|
| // FilePathWatcher can not handle non-absolute paths under windows.
|
| // We don't watch for file changes in windows now but if this should ever
|
| // be extended to Windows these lines might save some time of debugging.
|
| @@ -156,6 +159,7 @@ PluginService::PluginService()
|
| if (!plugin_dirs[i].IsAbsolute())
|
| continue;
|
| #endif
|
| + FilePathWatcher* watcher = new FilePathWatcher();
|
| VLOG(1) << "Watching for changes in: " << plugin_dirs[i].value();
|
| BrowserThread::PostTask(
|
| BrowserThread::FILE, FROM_HERE,
|
|
|