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 <stddef.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
7 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
8 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
11 #include "chrome/browser/chrome_elf_init_win.h" | 13 #include "chrome/browser/chrome_elf_init_win.h" |
12 #include "chrome/common/chrome_version.h" | 14 #include "chrome/common/chrome_version.h" |
13 #include "chrome_elf/blacklist/blacklist.h" | 15 #include "chrome_elf/blacklist/blacklist.h" |
14 #include "chrome_elf/chrome_elf_constants.h" | 16 #include "chrome_elf/chrome_elf_constants.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 199 |
198 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, | 200 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, |
199 static_cast<DWORD>(0)); | 201 static_cast<DWORD>(0)); |
200 | 202 |
201 // Only report the blacklist as getting setup when both registry writes | 203 // Only report the blacklist as getting setup when both registry writes |
202 // succeed, since otherwise the blacklist wasn't properly setup. | 204 // succeed, since otherwise the blacklist wasn't properly setup. |
203 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) | 205 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) |
204 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); | 206 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); |
205 } | 207 } |
206 } | 208 } |
OLD | NEW |