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" | |
9 #include "build/build_config.h" | 8 #include "build/build_config.h" |
10 #include "components/metrics/metrics_pref_names.h" | 9 #include "components/metrics/metrics_pref_names.h" |
| 10 #include "components/prefs/pref_service.h" |
11 | 11 |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/win/registry.h" | 15 #include "base/win/registry.h" |
16 #endif | 16 #endif |
17 | 17 |
18 namespace metrics { | 18 namespace metrics { |
19 | 19 |
20 CleanExitBeacon::CleanExitBeacon(const base::string16& backup_registry_key, | 20 CleanExitBeacon::CleanExitBeacon(const base::string16& backup_registry_key, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 backup_registry_key_.c_str(), | 71 backup_registry_key_.c_str(), |
72 KEY_ALL_ACCESS) == ERROR_SUCCESS) { | 72 KEY_ALL_ACCESS) == ERROR_SUCCESS) { |
73 regkey.WriteValue( | 73 regkey.WriteValue( |
74 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(), | 74 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(), |
75 value ? 1u : 0u); | 75 value ? 1u : 0u); |
76 } | 76 } |
77 #endif | 77 #endif |
78 } | 78 } |
79 | 79 |
80 } // namespace metrics | 80 } // namespace metrics |
OLD | NEW |