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 "chrome/browser/win/chrome_elf_init.h" | 5 #include "chrome/browser/win/chrome_elf_init.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/metrics/sparse_histogram.h" | 12 #include "base/metrics/sparse_histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/win/registry.h" | 14 #include "base/win/registry.h" |
15 #include "chrome/common/chrome_version.h" | 15 #include "chrome/common/chrome_version.h" |
16 #include "chrome_elf/blacklist/blacklist.h" | 16 #include "chrome_elf/blacklist/blacklist.h" |
17 #include "chrome_elf/chrome_elf_constants.h" | 17 #include "chrome_elf/chrome_elf_constants.h" |
18 #include "chrome_elf/dll_hash/dll_hash.h" | 18 #include "chrome_elf/dll_hash/dll_hash.h" |
19 #include "components/variations/variations_associated_data.h" | 19 #include "components/variations/variations_associated_data.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/common/content_features.h" | 21 #include "content/public/common/content_features.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, | 187 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, |
188 static_cast<DWORD>(0)); | 188 static_cast<DWORD>(0)); |
189 | 189 |
190 // Only report the blacklist as getting setup when both registry writes | 190 // Only report the blacklist as getting setup when both registry writes |
191 // succeed, since otherwise the blacklist wasn't properly setup. | 191 // succeed, since otherwise the blacklist wasn't properly setup. |
192 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) | 192 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) |
193 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); | 193 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); |
194 } | 194 } |
195 } | 195 } |
OLD | NEW |