OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/browser_watcher/crash_reporting_metrics_win.h" | 5 #include "components/browser_watcher/crash_reporting_metrics_win.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
9 #include "base/guid.h" | 11 #include "base/guid.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
11 #include "base/strings/safe_sprintf.h" | 14 #include "base/strings/safe_sprintf.h" |
12 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
14 #include "base/win/registry.h" | 17 #include "base/win/registry.h" |
15 | 18 |
16 namespace browser_watcher { | 19 namespace browser_watcher { |
17 | 20 |
18 namespace { | 21 namespace { |
19 | 22 |
20 // The prior implementation used 0 and 1. Its data collection is inconsistent | 23 // The prior implementation used 0 and 1. Its data collection is inconsistent |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 155 } |
153 | 156 |
154 // Delete the registry keys we've just counted. | 157 // Delete the registry keys we've just counted. |
155 for (const auto& value_name : to_delete) | 158 for (const auto& value_name : to_delete) |
156 regkey.DeleteValue(value_name.c_str()); | 159 regkey.DeleteValue(value_name.c_str()); |
157 | 160 |
158 return values; | 161 return values; |
159 } | 162 } |
160 | 163 |
161 } // namespace browser_watcher | 164 } // namespace browser_watcher |
OLD | NEW |