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

Side by Side Diff: chrome/common/safe_browsing/binary_feature_extractor_win.cc

Issue 1845083003: Remove "#pragma comment(lib" in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/installer/util/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/safe_browsing/binary_feature_extractor.h" 5 #include "chrome/common/safe_browsing/binary_feature_extractor.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <softpub.h> 8 #include <softpub.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
11 #include <wintrust.h> 11 #include <wintrust.h>
12 12
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "chrome/common/safe_browsing/csd.pb.h" 15 #include "chrome/common/safe_browsing/csd.pb.h"
16 #include "chrome/common/safe_browsing/pe_image_reader_win.h" 16 #include "chrome/common/safe_browsing/pe_image_reader_win.h"
17 17
18 #pragma comment(lib, "wintrust.lib")
19
20 namespace safe_browsing { 18 namespace safe_browsing {
21 19
22 namespace { 20 namespace {
23 21
24 // An EnumCertificatesCallback that collects each SignedData blob. 22 // An EnumCertificatesCallback that collects each SignedData blob.
25 bool OnCertificateEntry(uint16_t revision, 23 bool OnCertificateEntry(uint16_t revision,
26 uint16_t certificate_type, 24 uint16_t certificate_type,
27 const uint8_t* certificate_data, 25 const uint8_t* certificate_data,
28 size_t certificate_data_size, 26 size_t certificate_data_size,
29 void* context) { 27 void* context) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 159 }
162 } 160 }
163 161
164 if (signed_data) 162 if (signed_data)
165 pe_image.EnumCertificates(&OnCertificateEntry, signed_data); 163 pe_image.EnumCertificates(&OnCertificateEntry, signed_data);
166 164
167 return true; 165 return true;
168 } 166 }
169 167
170 } // namespace safe_browsing 168 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/installer/util/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698