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

Unified Diff: base/files/file.cc

Issue 1216183004: Only set File::[tracing_]path_ when file tracing is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/files/file_tracing.h » ('j') | base/files/file_tracing.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | base/files/file_tracing.h » ('j') | base/files/file_tracing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698