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

Unified Diff: content/browser/trace_message_filter.cc

Issue 9333003: Use FILE thread for disk operations in TraceSubscriberStdio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
Index: content/browser/trace_message_filter.cc
===================================================================
--- content/browser/trace_message_filter.cc (revision 120962)
+++ content/browser/trace_message_filter.cc (working copy)
@@ -96,8 +96,9 @@
}
void TraceMessageFilter::OnTraceDataCollected(const std::string& data) {
- TraceController::GetInstance()->OnTraceDataCollected(
- make_scoped_refptr(new base::debug::TraceLog::RefCountedString(data)));
+ scoped_refptr<base::RefCountedString> string(new base::RefCountedString());
joth 2012/02/08 13:22:20 avoid calling is 'string' as that's already overlo
Iain Merrick 2012/02/08 14:11:24 Done.
+ string->data() = data;
Iain Merrick 2012/02/08 12:07:05 This is a copy, not sure if there's a way to avoid
joth 2012/02/08 13:22:20 At least you're not adding a new copy .. I think i
Iain Merrick 2012/02/08 14:11:24 But I only have a const IPC::Message, so yeah, sad
+ TraceController::GetInstance()->OnTraceDataCollected(string);
}
void TraceMessageFilter::OnTraceBufferFull() {

Powered by Google App Engine
This is Rietveld 408576698