Index: content/browser/trace_subscriber_stdio.cc |
=================================================================== |
--- content/browser/trace_subscriber_stdio.cc (revision 120564) |
+++ content/browser/trace_subscriber_stdio.cc (working copy) |
@@ -21,6 +21,10 @@ |
bool TraceSubscriberStdio::OpenFile(const FilePath& path) { |
LOG(INFO) << "Logging performance trace to file: " << path.value(); |
CloseFile(); |
+ |
+ // We're in the UI thread, so creating a file is not a great thing to do! |
+ // But TraceEvent is not an end user feature, so let's disable the check. |
+ base::ThreadRestrictions::ScopedAllowIO scoped_allow_io; |
jam
2012/02/06 20:25:29
the goal is to eventually remove ThreadRestriction
joth
2012/02/07 09:14:59
I understand what you're saying here, but several
jam
2012/02/17 23:56:34
If we keep it because a few places are valid, then
Iain Merrick
2012/02/17 23:59:33
Removed in latest patch.
|
file_ = file_util::OpenFile(path, "w+"); |
if (IsValid()) { |
trace_buffer_.SetOutputCallback(base::Bind(&TraceSubscriberStdio::Write, |