OLD | NEW |
---|---|
(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 | |
OLD | NEW |