summaryrefslogtreecommitdiffstats
path: root/base/directory_watcher_win.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-03 10:09:02 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-03 10:09:02 +0000
commita730335f3dfc06d91741790f79fc30463fb18dfe (patch)
tree3788460095d7fd8cd0e56e4dd4beb59b1111172e /base/directory_watcher_win.cc
parente15c8e011e4a6131e7e2745c5d75d0c3f1a5d685 (diff)
downloadchromium_src-a730335f3dfc06d91741790f79fc30463fb18dfe.zip
chromium_src-a730335f3dfc06d91741790f79fc30463fb18dfe.tar.gz
chromium_src-a730335f3dfc06d91741790f79fc30463fb18dfe.tar.bz2
Re-enable DirectoryWatcherTest.SubDir on Vista
BUG=5072 Review URL: http://codereview.chromium.org/17046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/directory_watcher_win.cc')
-rw-r--r--base/directory_watcher_win.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/directory_watcher_win.cc b/base/directory_watcher_win.cc
index cdaec39..68da1e50 100644
--- a/base/directory_watcher_win.cc
+++ b/base/directory_watcher_win.cc
@@ -42,6 +42,7 @@ DirectoryWatcher::Impl::~Impl() {
bool DirectoryWatcher::Impl::Watch(const FilePath& path) {
DCHECK(path_.value().empty()); // Can only watch one path.
+ DCHECK(path.IsAbsolute()); // FindFirstChangeNotification requires it.
handle_ = FindFirstChangeNotification(
path.value().c_str(),