OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "components/net_log/net_log_temp_file.h" | 5 #include "components/net_log/net_log_temp_file.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "build/build_config.h" |
11 #include "components/net_log/chrome_net_log.h" | 12 #include "components/net_log/chrome_net_log.h" |
12 #include "net/log/write_to_file_net_log_observer.h" | 13 #include "net/log/write_to_file_net_log_observer.h" |
13 | 14 |
14 namespace net_log { | 15 namespace net_log { |
15 | 16 |
16 // Path of logs relative to base::GetTempDir(). Must be kept in sync | 17 // Path of logs relative to base::GetTempDir(). Must be kept in sync |
17 // with chrome/android/java/res/xml/file_paths.xml | 18 // with chrome/android/java/res/xml/file_paths.xml |
18 base::FilePath::CharType kLogRelativePath[] = | 19 base::FilePath::CharType kLogRelativePath[] = |
19 FILE_PATH_LITERAL("net-export/chrome-net-export-log.json"); | 20 FILE_PATH_LITERAL("net-export/chrome-net-export-log.json"); |
20 | 21 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 return true; | 221 return true; |
221 } | 222 } |
222 | 223 |
223 bool NetLogTempFile::NetExportLogExists() const { | 224 bool NetLogTempFile::NetExportLogExists() const { |
224 DCHECK(thread_checker_.CalledOnValidThread()); | 225 DCHECK(thread_checker_.CalledOnValidThread()); |
225 DCHECK(!log_path_.empty()); | 226 DCHECK(!log_path_.empty()); |
226 return base::PathExists(log_path_); | 227 return base::PathExists(log_path_); |
227 } | 228 } |
228 | 229 |
229 } // namespace net_log | 230 } // namespace net_log |
OLD | NEW |