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

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

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/binary_integrity_analy zer_mac.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy zer_mac.h"
6 6
7 #include <stddef.h>
8
7 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
8 #include "base/mac/bundle_locations.h" 10 #include "base/mac/bundle_locations.h"
9 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid ent.h" 11 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid ent.h"
10 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" 12 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
11 #include "chrome/browser/safe_browsing/signature_evaluator_mac.h" 13 #include "chrome/browser/safe_browsing/signature_evaluator_mac.h"
12 #include "chrome/common/safe_browsing/csd.pb.h" 14 #include "chrome/common/safe_browsing/csd.pb.h"
13 15
14 #define DEVELOPER_ID_APPLICATION_OID "field.1.2.840.113635.100.6.1.13" 16 #define DEVELOPER_ID_APPLICATION_OID "field.1.2.840.113635.100.6.1.13"
15 #define DEVELOPER_ID_INTERMEDIATE_OID "field.1.2.840.113635.100.6.2.6" 17 #define DEVELOPER_ID_INTERMEDIATE_OID "field.1.2.840.113635.100.6.2.6"
16 18
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void VerifyBinaryIntegrity(scoped_ptr<IncidentReceiver> incident_receiver) { 70 void VerifyBinaryIntegrity(scoped_ptr<IncidentReceiver> incident_receiver) {
69 size_t i = 0; 71 size_t i = 0;
70 for (const auto& p : GetCriticalPathsAndRequirements()) { 72 for (const auto& p : GetCriticalPathsAndRequirements()) {
71 base::TimeTicks time_before = base::TimeTicks::Now(); 73 base::TimeTicks time_before = base::TimeTicks::Now();
72 VerifyBinaryIntegrityHelper(incident_receiver.get(), p.path, p.requirement); 74 VerifyBinaryIntegrityHelper(incident_receiver.get(), p.path, p.requirement);
73 RecordSignatureVerificationTime(i++, base::TimeTicks::Now() - time_before); 75 RecordSignatureVerificationTime(i++, base::TimeTicks::Now() - time_before);
74 } 76 }
75 } 77 }
76 78
77 } // namespace 79 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698