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

Unified Diff: net/dns/dns_config_service_posix.cc

Issue 11415066: FilePathWatcher::Watch() - Listen for sub directory changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added more test cases Created 8 years 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: net/dns/dns_config_service_posix.cc
diff --git a/net/dns/dns_config_service_posix.cc b/net/dns/dns_config_service_posix.cc
index db9341861b45a1bd993edc34b3b4e30301ef03de..7e8a75b594deab7144eedebe3209f804ef169417 100644
--- a/net/dns/dns_config_service_posix.cc
+++ b/net/dns/dns_config_service_posix.cc
@@ -59,7 +59,7 @@ class ConfigWatcher {
bool Watch(const CallbackType& callback) {
callback_ = callback;
- return watcher_.Watch(FilePath(kFilePathConfig),
+ return watcher_.Watch(FilePath(kFilePathConfig), false,
base::Bind(&ConfigWatcher::OnCallback,
base::Unretained(this)));
}
@@ -120,7 +120,7 @@ class DnsConfigServicePosix::Watcher {
LOG(ERROR) << "DNS config watch failed to start.";
success = false;
}
- if (!hosts_watcher_.Watch(FilePath(kFilePathHosts),
+ if (!hosts_watcher_.Watch(FilePath(kFilePathHosts), false,
base::Bind(&Watcher::OnHostsChanged,
base::Unretained(this)))) {
LOG(ERROR) << "DNS hosts watch failed to start.";
« no previous file with comments | « chrome/browser/system_monitor/removable_device_notifications_linux.cc ('k') | net/dns/dns_config_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698