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

Unified Diff: content/browser/profiler_message_filter.cc

Issue 9702014: [UMA] Use proper C++ objects to serialize tracked_objects across process boundaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix yet another IWYU for chromeos/ (take 4) Created 8 years, 8 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/profiler_message_filter.cc
diff --git a/content/browser/profiler_message_filter.cc b/content/browser/profiler_message_filter.cc
index e0f59799b66218751bc0c1aaaee579c099f7dfda..d94c7d165ca088756fc8be3e72f1bbbc87d8a9b9 100644
--- a/content/browser/profiler_message_filter.cc
+++ b/content/browser/profiler_message_filter.cc
@@ -5,14 +5,13 @@
#include "content/browser/profiler_message_filter.h"
#include "base/tracked_objects.h"
-#include "base/values.h"
#include "content/browser/profiler_controller_impl.h"
#include "content/common/child_process_messages.h"
-using content::BrowserMessageFilter;
-using content::BrowserThread;
+namespace content {
-ProfilerMessageFilter::ProfilerMessageFilter() {
+ProfilerMessageFilter::ProfilerMessageFilter(ProcessType process_type)
+ : process_type_(process_type) {
}
ProfilerMessageFilter::~ProfilerMessageFilter() {
@@ -39,10 +38,9 @@ bool ProfilerMessageFilter::OnMessageReceived(const IPC::Message& message,
void ProfilerMessageFilter::OnChildProfilerData(
int sequence_number,
- const base::DictionaryValue& profiler_data) {
- base::DictionaryValue* dictionary_value = new base::DictionaryValue;
- dictionary_value->MergeDictionary(&profiler_data);
- // OnProfilerDataCollected assumes the ownership of profiler_data.
- content::ProfilerControllerImpl::GetInstance()->OnProfilerDataCollected(
- sequence_number, dictionary_value);
+ const tracked_objects::ProcessDataSnapshot& profiler_data) {
+ ProfilerControllerImpl::GetInstance()->OnProfilerDataCollected(
+ sequence_number, profiler_data, process_type_);
+}
+
}
« no previous file with comments | « content/browser/profiler_message_filter.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698