Index: content/common/child_thread.cc |
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc |
index c4061b3a8ab4e6b7a6c0ccd33e185031767e73f5..01fdcb132f51885cae7a8d302f47866999a3653c 100644 |
--- a/content/common/child_thread.cc |
+++ b/content/common/child_thread.cc |
@@ -7,7 +7,6 @@ |
#include "base/command_line.h" |
#include "base/message_loop.h" |
#include "base/process.h" |
-#include "base/process_util.h" |
#include "base/string_util.h" |
#include "base/tracked_objects.h" |
#include "content/common/child_process.h" |
@@ -28,6 +27,8 @@ |
#include "content/common/handle_enumerator_win.h" |
#endif |
+using tracked_objects::ThreadData; |
+ |
ChildThread::ChildThread() { |
channel_name_ = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
switches::kProcessChannelID); |
@@ -219,21 +220,17 @@ void ChildThread::OnSetIPCLoggingEnabled(bool enable) { |
} |
#endif // IPC_MESSAGE_LOG_ENABLED |
-void ChildThread::OnSetProfilerStatus( |
- tracked_objects::ThreadData::Status status) { |
- tracked_objects::ThreadData::InitializeAndSetTrackingStatus(status); |
+void ChildThread::OnSetProfilerStatus(ThreadData::Status status) { |
+ ThreadData::InitializeAndSetTrackingStatus(status); |
} |
-void ChildThread::OnGetChildProfilerData( |
- int sequence_number, |
- const std::string& process_type) { |
- scoped_ptr<base::DictionaryValue> value( |
- tracked_objects::ThreadData::ToValue(false)); |
- value->SetString("process_type", process_type); |
- value->SetInteger("process_id", base::GetCurrentProcId()); |
+void ChildThread::OnGetChildProfilerData(int sequence_number, |
+ content::ProcessType process_type) { |
+ tracked_objects::SerializedProcessData process_data; |
+ ThreadData::ToSerializedProcessData(false, &process_data); |
Send(new ChildProcessHostMsg_ChildProfilerData( |
- sequence_number, *value.get())); |
+ sequence_number, process_data, process_type)); |
} |
void ChildThread::OnDumpHandles() { |