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

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 base_unittests failures Created 8 years, 9 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..c46ede45499f78d9bba4526b8b19df3d8b6dcce6 100644
--- a/content/browser/profiler_message_filter.cc
+++ b/content/browser/profiler_message_filter.cc
@@ -5,12 +5,11 @@
#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"
+#include "content/public/common/serialized_profiler_data.h"
-using content::BrowserMessageFilter;
-using content::BrowserThread;
+namespace content {
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 SerializedProfilerData& profiler_data) {
+ ProfilerControllerImpl::GetInstance()->OnProfilerDataCollected(
+ sequence_number, profiler_data);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698