summaryrefslogtreecommitdiffstats
path: root/base/directory_watcher_win.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-07 22:19:50 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-07 22:19:50 +0000
commitcfa428e0e42218b43f0c0b2486d2cc19b675d37d (patch)
tree7377cebabc3d676447cc1dcd564ec1cb9d17664c /base/directory_watcher_win.cc
parent861d4339e73a774ccd04401e1a90d5b5403e1e3f (diff)
downloadchromium_src-cfa428e0e42218b43f0c0b2486d2cc19b675d37d.zip
chromium_src-cfa428e0e42218b43f0c0b2486d2cc19b675d37d.tar.gz
chromium_src-cfa428e0e42218b43f0c0b2486d2cc19b675d37d.tar.bz2
Don't DCHECK if a watched directory doesn't exist.
The caller can't easily check whether a directory exists before calling this functions. Also modify GreasemonkeyMaster to allow this condition. Review URL: http://codereview.chromium.org/16580 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/directory_watcher_win.cc')
-rw-r--r--base/directory_watcher_win.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/base/directory_watcher_win.cc b/base/directory_watcher_win.cc
index cdaec39..6fe6ba5 100644
--- a/base/directory_watcher_win.cc
+++ b/base/directory_watcher_win.cc
@@ -48,10 +48,8 @@ bool DirectoryWatcher::Impl::Watch(const FilePath& path) {
FALSE, // Don't watch subtree.
FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_SIZE |
FILE_NOTIFY_CHANGE_LAST_WRITE);
- if (handle_ == INVALID_HANDLE_VALUE) {
- NOTREACHED();
+ if (handle_ == INVALID_HANDLE_VALUE)
return false;
- }
path_ = path;
watcher_.StartWatching(handle_, this);