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

Unified Diff: base/metrics/call_stack_profile_params.cc

Issue 1318733007: Refactor CallStackProfile::Params into base/ for use over IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 4 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
« no previous file with comments | « base/metrics/call_stack_profile_params.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/call_stack_profile_params.cc
diff --git a/base/metrics/call_stack_profile_params.cc b/base/metrics/call_stack_profile_params.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8f8a594783e093b621afc1d1a3493729c5d7ba16
--- /dev/null
+++ b/base/metrics/call_stack_profile_params.cc
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/metrics/call_stack_profile_params.h"
+
+namespace base {
+
+CallStackProfileParams::CallStackProfileParams(
+ base::CallStackProfileParams::Trigger trigger)
+ : CallStackProfileParams(trigger, false) {}
+
+CallStackProfileParams::CallStackProfileParams(
+ base::CallStackProfileParams::Trigger trigger,
+ bool preserve_sample_ordering)
+ : trigger(trigger), preserve_sample_ordering(preserve_sample_ordering) {}
+
+CallStackProfileParams::CallStackProfileParams()
+ : trigger(base::CallStackProfileParams::UNKNOWN),
Mike Wittman 2015/08/31 20:13:06 nit: use a delegating constructor here, like the f
sydli 2015/08/31 22:02:44 Done.
+ preserve_sample_ordering(false) {}
+
+} // namespace base
« no previous file with comments | « base/metrics/call_stack_profile_params.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698