OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/safe_browsing/incident_reporting/omnibox_incident_handl ers.h" | |
6 | |
7 #include "base/logging.h" | |
8 #include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util. h" | |
grt (UTC plus 2)
2014/12/05 18:40:56
unused
Mark P
2014/12/09 19:23:30
Done.
| |
9 #include "chrome/common/safe_browsing/csd.pb.h" | |
10 | |
11 namespace safe_browsing { | |
12 | |
13 std::string GetOmniboxIncidentKey( | |
14 const ClientIncidentReport_IncidentData& incident_data) { | |
15 DCHECK(incident_data.has_omnibox_interaction()); | |
16 // We want to only return the first suspicious omnibox interaction so we use | |
grt (UTC plus 2)
2014/12/05 18:40:56
There's been some discussion on chromium-dev about
Mark P
2014/12/09 19:23:30
Thanks for the improved comment. The original com
| |
17 // a constant key so all later reports will be duped against this one. | |
18 return std::string("1"); | |
19 } | |
20 | |
21 uint32_t GetOmniboxIncidentDigest( | |
22 const ClientIncidentReport_IncidentData& incident_data) { | |
23 DCHECK(incident_data.has_omnibox_interaction()); | |
24 // We use a constant digest because don't need to report additional | |
grt (UTC plus 2)
2014/12/05 18:40:56
// Return a constant (independent of the incident'
Mark P
2014/12/09 19:23:29
Done.
| |
25 // information. | |
26 return 1u; | |
27 } | |
28 | |
29 } // namespace safe_browsing | |
OLD | NEW |