OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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/crash_sample_chromeos.h" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/metrics/metric_sample_chromeos.h" |
| 10 #include "base/strings/stringprintf.h" |
| 11 |
| 12 using std::string; |
| 13 |
| 14 namespace base { |
| 15 CrashSample::CrashSample(const std::string& crashname) |
| 16 : MetricSample(MetricSample::CRASH, crashname) {} |
| 17 |
| 18 CrashSample* CrashSample::ReadCrash(const std::string& crashname) { |
| 19 return new CrashSample(crashname); |
| 20 } |
| 21 |
| 22 CrashSample::~CrashSample() {} |
| 23 |
| 24 string CrashSample::ToString() const { |
| 25 return StringPrintf("crash%c%s%c", '\0', name_.c_str(), '\0'); |
| 26 } |
| 27 } // namespace base |
OLD | NEW |