| Index: chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
|
| diff --git a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
|
| index 1c960364cf1ca21f7e5f3d29908c741863fd152a..67f9086862bd4adf71cc3e7fd7b74a1493d387ff 100644
|
| --- a/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
|
| +++ b/chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc
|
| @@ -41,8 +41,10 @@ TPIncident_ValueState MapValueState(
|
| } // namespace
|
|
|
| PreferenceValidationDelegate::PreferenceValidationDelegate(
|
| + Profile* profile,
|
| const AddIncidentCallback& add_incident)
|
| - : add_incident_(add_incident) {
|
| + : profile_(profile),
|
| + add_incident_(add_incident) {
|
| }
|
|
|
| PreferenceValidationDelegate::~PreferenceValidationDelegate() {
|
| @@ -64,8 +66,8 @@ void PreferenceValidationDelegate::OnAtomicPreferenceValidation(
|
| incident->clear_atomic_value();
|
| }
|
| incident->set_value_state(proto_value_state);
|
| - add_incident_.Run(make_scoped_ptr(
|
| - new TrackedPreferenceIncident(incident.Pass(), is_personal)));
|
| + add_incident_.Run(profile_, make_scoped_ptr(new TrackedPreferenceIncident(
|
| + incident.Pass(), is_personal)));
|
| }
|
| }
|
|
|
| @@ -87,8 +89,8 @@ void PreferenceValidationDelegate::OnSplitPreferenceValidation(
|
| incident->add_split_key(*scan);
|
| }
|
| incident->set_value_state(proto_value_state);
|
| - add_incident_.Run(make_scoped_ptr(
|
| - new TrackedPreferenceIncident(incident.Pass(), is_personal)));
|
| + add_incident_.Run(profile_, make_scoped_ptr(new TrackedPreferenceIncident(
|
| + incident.Pass(), is_personal)));
|
| }
|
| }
|
|
|
|
|