| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/metrics/clean_exit_beacon.h" | 5 #include "components/metrics/clean_exit_beacon.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "build/build_config.h" |
| 9 #include "components/metrics/metrics_pref_names.h" | 10 #include "components/metrics/metrics_pref_names.h" |
| 10 | 11 |
| 11 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
| 12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/win/registry.h" | 15 #include "base/win/registry.h" |
| 15 #endif | 16 #endif |
| 16 | 17 |
| 17 namespace metrics { | 18 namespace metrics { |
| 18 | 19 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 backup_registry_key_.c_str(), | 71 backup_registry_key_.c_str(), |
| 71 KEY_ALL_ACCESS) == ERROR_SUCCESS) { | 72 KEY_ALL_ACCESS) == ERROR_SUCCESS) { |
| 72 regkey.WriteValue( | 73 regkey.WriteValue( |
| 73 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(), | 74 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(), |
| 74 value ? 1u : 0u); | 75 value ? 1u : 0u); |
| 75 } | 76 } |
| 76 #endif | 77 #endif |
| 77 } | 78 } |
| 78 | 79 |
| 79 } // namespace metrics | 80 } // namespace metrics |
| OLD | NEW |