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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/finch_config_signature_incident_handlers.cc

Issue 646733002: Added incident report for variations seed signature mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor styling fixes. Created 6 years, 2 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/incident_reporting/finch_config_signature_incident_handlers.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_handlers.cc b/chrome/browser/safe_browsing/incident_reporting/finch_config_signature_incident_handlers.cc
similarity index 50%
copy from chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_handlers.cc
copy to chrome/browser/safe_browsing/incident_reporting/finch_config_signature_incident_handlers.cc
index 1847837211cdca3cff556493d71b362e1f374c73..e923276e67240eaf1c26c46cfdf5ce37ad8de878 100644
--- a/chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_handlers.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/finch_config_signature_incident_handlers.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_incident_handlers.h"
+#include "chrome/browser/safe_browsing/incident_reporting/finch_config_signature_incident_handlers.h"
#include "base/logging.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util.h"
@@ -10,17 +10,17 @@
namespace safe_browsing {
-std::string GetBlacklistLoadIncidentKey(
+std::string GetFinchConfigSignatureIncidentKey(
const ClientIncidentReport_IncidentData& incident_data) {
- DCHECK(incident_data.has_blacklist_load());
- DCHECK(incident_data.blacklist_load().has_path());
- return incident_data.blacklist_load().path();
+ DCHECK(incident_data.has_finch_config_signature());
+ DCHECK(incident_data.finch_config_signature().has_signature_hash());
+ return incident_data.finch_config_signature().signature_hash();
grt (UTC plus 2) 2014/10/10 17:45:42 return some constant value here since there is onl
}
-uint32_t GetBlacklistLoadIncidentDigest(
+uint32_t GetFinchConfigSignatureIncidentDigest(
const ClientIncidentReport_IncidentData& incident_data) {
- DCHECK(incident_data.has_blacklist_load());
- return HashMessage(incident_data.blacklist_load());
+ DCHECK(incident_data.has_finch_config_signature());
+ return HashMessage(incident_data.finch_config_signature());
}
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698