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

Unified Diff: net/dns/dns_config_service_posix.cc

Issue 1304233004: Stop building FilePathWatcher on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « base/base.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02877e78e1db39b195a690aa5a934548efa80072..4300dfc420a29afaa43ed5d9c8b591e8545ed938 100644
--- a/net/dns/dns_config_service_posix.cc
+++ b/net/dns/dns_config_service_posix.cc
@@ -210,6 +210,7 @@ class DnsConfigServicePosix::Watcher {
DNS_CONFIG_WATCH_FAILED_TO_START_CONFIG,
DNS_CONFIG_WATCH_MAX);
}
+#if !defined(OS_IOS)
if (!hosts_watcher_.Watch(
base::FilePath(service_->file_path_hosts_), false,
base::Bind(&Watcher::OnHostsChanged, base::Unretained(this)))) {
@@ -219,6 +220,7 @@ class DnsConfigServicePosix::Watcher {
DNS_CONFIG_WATCH_FAILED_TO_START_HOSTS,
DNS_CONFIG_WATCH_MAX);
}
+#endif
return success;
}
@@ -249,7 +251,9 @@ class DnsConfigServicePosix::Watcher {
DnsConfigServicePosix* service_;
DnsConfigWatcher config_watcher_;
+#if !defined(OS_IOS)
base::FilePathWatcher hosts_watcher_;
+#endif
base::WeakPtrFactory<Watcher> weak_factory_;
« no previous file with comments | « base/base.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698