Chromium Code Reviews| Index: base/files/file.cc |
| diff --git a/base/files/file.cc b/base/files/file.cc |
| index 6dfeb9172fd3239f930575fe7f1f14bdc60af5f0..d3e6f3b86cfbd970580f5b65d5234508e03178c2 100644 |
| --- a/base/files/file.cc |
| +++ b/base/files/file.cc |
| @@ -90,7 +90,8 @@ void File::Initialize(const FilePath& path, uint32 flags) { |
| error_details_ = FILE_ERROR_ACCESS_DENIED; |
| return; |
| } |
| - path_ = path; |
| + if (FileTracing::IsCategoryEnabled()) |
| + path_ = path; |
| SCOPED_FILE_TRACE("Initialize"); |
| DoInitialize(flags); |
| } |