OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 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 | 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/watcher_metrics_provider_win.h" | 5 #include "components/browser_watcher/watcher_metrics_provider_win.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <limits> | 9 #include <limits> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/sparse_histogram.h" |
12 #include "base/process/process.h" | 14 #include "base/process/process.h" |
13 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
16 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // user account, there's a small race that will double-report the exit codes | 225 // user account, there's a small race that will double-report the exit codes |
224 // from both/multiple instances. This ought to be vanishingly rare and will | 226 // from both/multiple instances. This ought to be vanishingly rare and will |
225 // only manifest as low-level "random" noise. To work around this it would be | 227 // only manifest as low-level "random" noise. To work around this it would be |
226 // necessary to implement some form of global locking, which is not worth it | 228 // necessary to implement some form of global locking, which is not worth it |
227 // here. | 229 // here. |
228 RecordExitCodes(registry_path_); | 230 RecordExitCodes(registry_path_); |
229 DeleteExitFunnels(registry_path_); | 231 DeleteExitFunnels(registry_path_); |
230 } | 232 } |
231 | 233 |
232 } // namespace browser_watcher | 234 } // namespace browser_watcher |
OLD | NEW |