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

Unified Diff: chrome/browser/file_watcher_win.cc

Issue 864001: Move FileWatcher from src/base/ to src/chrome/browser/ and switch (Closed)
Patch Set: fix tests on mac Created 10 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
« no previous file with comments | « chrome/browser/file_watcher_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/file_watcher_win.cc
diff --git a/base/file_watcher_win.cc b/chrome/browser/file_watcher_win.cc
similarity index 94%
rename from base/file_watcher_win.cc
rename to chrome/browser/file_watcher_win.cc
index ac04757bfbafff25e2b8971e987a2538907c888d..7d19b32b61edcd706c3d09b19ee7c335363e240d 100644
--- a/base/file_watcher_win.cc
+++ b/chrome/browser/file_watcher_win.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/file_watcher.h"
+#include "chrome/browser/file_watcher.h"
#include "base/file_path.h"
#include "base/file_util.h"
@@ -18,8 +18,7 @@ class FileWatcherImpl : public FileWatcher::PlatformDelegate,
public:
FileWatcherImpl() : delegate_(NULL), handle_(INVALID_HANDLE_VALUE) {}
- virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate,
- MessageLoop* backend_loop);
+ virtual bool Watch(const FilePath& path, FileWatcher::Delegate* delegate);
// Callback from MessageLoopForIO.
virtual void OnObjectSignaled(HANDLE object);
@@ -54,8 +53,7 @@ FileWatcherImpl::~FileWatcherImpl() {
}
bool FileWatcherImpl::Watch(const FilePath& path,
- FileWatcher::Delegate* delegate,
- MessageLoop* backend_loop) {
+ FileWatcher::Delegate* delegate) {
DCHECK(path_.value().empty()); // Can only watch one path.
file_util::FileInfo file_info;
if (file_util::GetFileInfo(path, &file_info))
« no previous file with comments | « chrome/browser/file_watcher_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698