OLD | NEW |
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/tracked_preference_inc
ident.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/tracked_preference_inc
ident.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util.
h" | 8 #include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util.
h" |
9 #include "chrome/common/safe_browsing/csd.pb.h" | 9 #include "chrome/common/safe_browsing/csd.pb.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 scoped_ptr<ClientIncidentReport_IncidentData> payload( | 46 scoped_ptr<ClientIncidentReport_IncidentData> payload( |
47 Incident::TakePayload()); | 47 Incident::TakePayload()); |
48 | 48 |
49 if (is_personal_) { | 49 if (is_personal_) { |
50 ClientIncidentReport_IncidentData_TrackedPreferenceIncident* incident = | 50 ClientIncidentReport_IncidentData_TrackedPreferenceIncident* incident = |
51 payload->mutable_tracked_preference(); | 51 payload->mutable_tracked_preference(); |
52 incident->clear_atomic_value(); | 52 incident->clear_atomic_value(); |
53 incident->clear_split_key(); | 53 incident->clear_split_key(); |
54 } | 54 } |
55 | 55 |
56 return payload.Pass(); | 56 return payload; |
57 } | 57 } |
58 | 58 |
59 } // namespace safe_browsing | 59 } // namespace safe_browsing |
OLD | NEW |