OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/dns/dns_config_service.h" | 5 #include "net/dns/dns_config_service.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 last_sent_empty_ = false; | 226 last_sent_empty_ = false; |
227 if (watch_failed_) { | 227 if (watch_failed_) { |
228 // If a watch failed, the config may not be accurate, so report empty. | 228 // If a watch failed, the config may not be accurate, so report empty. |
229 callback_.Run(DnsConfig()); | 229 callback_.Run(DnsConfig()); |
230 } else { | 230 } else { |
231 callback_.Run(dns_config_); | 231 callback_.Run(dns_config_); |
232 } | 232 } |
233 } | 233 } |
234 | 234 |
235 } // namespace net | 235 } // namespace net |
236 | |
OLD | NEW |