Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/environment_data_collection_win.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/safe_browsing/incident_reporting/environment_data_colle ction_win.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/environment_data_colle ction_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/i18n/case_conversion.h" 13 #include "base/i18n/case_conversion.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "base/win/registry.h" 20 #include "base/win/registry.h"
21 #include "base/win/win_util.h" 21 #include "base/win/win_util.h"
22 #include "chrome/browser/install_verification/win/module_info.h" 22 #include "chrome/browser/install_verification/win/module_info.h"
23 #include "chrome/browser/install_verification/win/module_verification_common.h" 23 #include "chrome/browser/install_verification/win/module_verification_common.h"
24 #include "chrome/browser/net/service_providers_win.h" 24 #include "chrome/browser/net/service_providers_win.h"
25 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif ier_win.h" 25 #include "chrome/browser/safe_browsing/incident_reporting/module_integrity_verif ier_win.h"
26 #include "chrome/browser/safe_browsing/path_sanitizer.h" 26 #include "chrome/browser/safe_browsing/path_sanitizer.h"
27 #include "chrome/common/safe_browsing/binary_feature_extractor.h" 27 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
28 #include "chrome/common/safe_browsing/csd.pb.h"
29 #include "chrome_elf/chrome_elf_constants.h" 28 #include "chrome_elf/chrome_elf_constants.h"
29 #include "components/safe_browsing/csd.pb.h"
30 #include "components/variations/variations_associated_data.h" 30 #include "components/variations/variations_associated_data.h"
31 31
32 namespace safe_browsing { 32 namespace safe_browsing {
33 33
34 namespace { 34 namespace {
35 35
36 const REGSAM kKeyReadNoNotify = (KEY_READ) & ~(KEY_NOTIFY); 36 const REGSAM kKeyReadNoNotify = (KEY_READ) & ~(KEY_NOTIFY);
37 37
38 // The modules on which we will run VerifyModule. 38 // The modules on which we will run VerifyModule.
39 const wchar_t* const kModulesToVerify[] = { 39 const wchar_t* const kModulesToVerify[] = {
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 CollectModuleVerificationData( 302 CollectModuleVerificationData(
303 kModulesToVerify, arraysize(kModulesToVerify), process); 303 kModulesToVerify, arraysize(kModulesToVerify), process);
304 } 304 }
305 305
306 void CollectPlatformOSData(ClientIncidentReport_EnvironmentData_OS* os_data) { 306 void CollectPlatformOSData(ClientIncidentReport_EnvironmentData_OS* os_data) {
307 CollectRegistryData(kRegKeysToCollect, arraysize(kRegKeysToCollect), 307 CollectRegistryData(kRegKeysToCollect, arraysize(kRegKeysToCollect),
308 os_data->mutable_registry_key()); 308 os_data->mutable_registry_key());
309 CollectDomainEnrollmentData(os_data); 309 CollectDomainEnrollmentData(os_data);
310 } 310 }
311 } // namespace safe_browsing 311 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698