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

Side by Side Diff: components/net_log/net_log_temp_file.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/net_log/net_log_temp_file.h ('k') | components/net_log/net_log_temp_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698