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" |
| 6 |
5 #include <stddef.h> | 7 #include <stddef.h> |
6 | 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
9 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
10 #include "base/metrics/sparse_histogram.h" | 12 #include "base/metrics/sparse_histogram.h" |
11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
12 #include "base/win/registry.h" | 14 #include "base/win/registry.h" |
13 #include "chrome/browser/chrome_elf_init_win.h" | |
14 #include "chrome/common/chrome_version.h" | 15 #include "chrome/common/chrome_version.h" |
15 #include "chrome_elf/blacklist/blacklist.h" | 16 #include "chrome_elf/blacklist/blacklist.h" |
16 #include "chrome_elf/chrome_elf_constants.h" | 17 #include "chrome_elf/chrome_elf_constants.h" |
17 #include "chrome_elf/dll_hash/dll_hash.h" | 18 #include "chrome_elf/dll_hash/dll_hash.h" |
18 #include "components/variations/variations_associated_data.h" | 19 #include "components/variations/variations_associated_data.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 | 21 |
21 const char kBrowserBlacklistTrialName[] = "BrowserBlacklist"; | 22 const char kBrowserBlacklistTrialName[] = "BrowserBlacklist"; |
22 const char kBrowserBlacklistTrialDisabledGroupName[] = "NoBlacklist"; | 23 const char kBrowserBlacklistTrialDisabledGroupName[] = "NoBlacklist"; |
23 | 24 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 200 |
200 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, | 201 blacklist_registry_key.WriteValue(blacklist::kBeaconAttemptCount, |
201 static_cast<DWORD>(0)); | 202 static_cast<DWORD>(0)); |
202 | 203 |
203 // Only report the blacklist as getting setup when both registry writes | 204 // Only report the blacklist as getting setup when both registry writes |
204 // succeed, since otherwise the blacklist wasn't properly setup. | 205 // succeed, since otherwise the blacklist wasn't properly setup. |
205 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) | 206 if (set_version == ERROR_SUCCESS && set_state == ERROR_SUCCESS) |
206 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); | 207 RecordBlacklistSetupEvent(BLACKLIST_SETUP_ENABLED); |
207 } | 208 } |
208 } | 209 } |
OLD | NEW |