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

Side by Side 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, 3 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 "base/metrics/call_stack_profile_params.h"
6
7 namespace base {
8
9 CallStackProfileParams::CallStackProfileParams(
10 base::CallStackProfileParams::Trigger trigger)
11 : CallStackProfileParams(trigger, false) {}
12
13 CallStackProfileParams::CallStackProfileParams(
14 base::CallStackProfileParams::Trigger trigger,
15 bool preserve_sample_ordering)
16 : trigger(trigger), preserve_sample_ordering(preserve_sample_ordering) {}
17
18 CallStackProfileParams::CallStackProfileParams()
19 : 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.
20 preserve_sample_ordering(false) {}
21
22 } // namespace base
OLDNEW
« 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