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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 444123002: Adding a new delayed analysis that verify binaries signature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@grt
Patch Set: First round of comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 71b7b13121da5f72b4d115738dca60e7b0e75c50..ef511d3c91549d9cf96d30c34c2e69e218c1f294 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/prefs/tracked/tracked_preference_validation_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/safe_browsing/binary_integrity_analyzer.h"
#include "chrome/browser/safe_browsing/client_side_detection_service.h"
#include "chrome/browser/safe_browsing/database_manager.h"
#include "chrome/browser/safe_browsing/download_protection_service.h"
@@ -88,6 +89,12 @@ base::FilePath CookieFilePath() {
SafeBrowsingService::GetBaseFilename().value() + kCookiesFile);
}
+// Registers all the delayed analysis with the incident reporting service. This
+// is where you register your process-wide, profile-independent analysis.
+void RegisterAllDelayedAnalysis() {
+ safe_browsing::RegisterBinaryIntegrityAnalysis();
+}
+
#if defined(FULL_SAFE_BROWSING)
// Returns true if the incident reporting service is enabled via a field trial.
bool IsIncidentReportingServiceEnabled() {
@@ -258,6 +265,9 @@ void SafeBrowsingService::Initialize() {
content::NotificationService::AllSources());
prefs_registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED,
content::NotificationService::AllSources());
+
+ // Register all the delayed analysis to the incident reporting service.
grt (UTC plus 2) 2014/08/08 02:23:05 may as well go ahead and wrap this (and the functi
pmonette_google.com 2014/08/08 15:05:43 Done.
+ RegisterAllDelayedAnalysis();
}
void SafeBrowsingService::ShutDown() {

Powered by Google App Engine
This is Rietveld 408576698