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_hosts.h" | 5 #include "net/dns/dns_hosts.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 std::string contents; | 209 std::string contents; |
210 if (!base::ReadFileToString(path, &contents)) | 210 if (!base::ReadFileToString(path, &contents)) |
211 return false; | 211 return false; |
212 | 212 |
213 ParseHosts(contents, dns_hosts); | 213 ParseHosts(contents, dns_hosts); |
214 return true; | 214 return true; |
215 } | 215 } |
216 | 216 |
217 } // namespace net | 217 } // namespace net |
218 | |
OLD | NEW |