Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: content/browser/plugin_service.cc

Issue 6793020: Move FilePathWatcher to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move OWNERS file and rebase to pick up latest changes Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/plugin_service.cc
diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc
index 7f96debf54702948e0b39894b5adb26447f65b10..eeea722c423456d6bcb9cedce06d4fe8c01dc68e 100644
--- a/content/browser/plugin_service.cc
+++ b/content/browser/plugin_service.cc
@@ -60,7 +60,7 @@ static void PurgePluginListCache(bool reload_pages) {
#if defined(OS_LINUX)
// Delegate class for monitoring directories.
-class PluginDirWatcherDelegate : public FilePathWatcher::Delegate {
+class PluginDirWatcherDelegate : public base::files::FilePathWatcher::Delegate {
virtual void OnFilePathChanged(const FilePath& path) OVERRIDE {
VLOG(1) << "Watched path changed: " << path.value();
// Make the plugin list update itself
@@ -156,7 +156,7 @@ PluginService::PluginService()
&plugin_dirs);
for (size_t i = 0; i < plugin_dirs.size(); ++i) {
- FilePathWatcher* watcher = new FilePathWatcher();
+ base::files::FilePathWatcher* watcher = new base::files::FilePathWatcher();
dmac 2011/04/05 19:55:51 just realized that this should go under the #if de
Craig 2011/04/06 15:27:30 Done.
// 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.
@@ -546,9 +546,9 @@ void PluginService::RegisterPepperPlugins() {
#if defined(OS_LINUX)
// static
void PluginService::RegisterFilePathWatcher(
- FilePathWatcher *watcher,
+ base::files::FilePathWatcher *watcher,
const FilePath& path,
- FilePathWatcher::Delegate* delegate) {
+ base::files::FilePathWatcher::Delegate* delegate) {
bool result = watcher->Watch(path, delegate);
DCHECK(result);
}

Powered by Google App Engine
This is Rietveld 408576698