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

Side by Side Diff: content/public/common/serialized_profiler_data.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/common/serialized_profiler_data.h"
6
7 #include "base/values.h"
8
9 namespace content {
10
11 //------------------------------------------------------------------------------
12 SerializedProfilerData::SerializedProfilerData() {
13 }
14
15 SerializedProfilerData::SerializedProfilerData(
16 content::ProcessType process_type)
17 : process_type(process_type) {
18 }
19
20 SerializedProfilerData::~SerializedProfilerData() {
21 }
22
23 void SerializedProfilerData::ToValue(base::DictionaryValue* dictionary) const {
24 tracked_objects::SerializedProcessData::ToValue(dictionary);
25 dictionary->SetString("process_type",
26 content::GetProcessTypeNameInEnglish(process_type));
27 }
28
29 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698