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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h

Issue 891793002: Take a Profile when adding an incident to the incident reporting service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment and formatting Created 5 years, 11 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/add_incident_callback.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h b/chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h
index 7e0e497710b99b921dca037fbeeae5fa0d105141..f33ace66db260d4e2309a2f61efc1fafa4e444cc 100644
--- a/chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h
+++ b/chrome/browser/safe_browsing/incident_reporting/add_incident_callback.h
@@ -8,13 +8,17 @@
#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
+class Profile;
+
namespace safe_browsing {
class Incident;
// A callback used by external components to add an incident to the incident
-// reporting service.
-typedef base::Callback<void(scoped_ptr<Incident>)> AddIncidentCallback;
+// reporting service. A Profile* should be provided for incidents related to a
+// specific profile; use nullptr for Process-wide incidents.
+typedef base::Callback<void(Profile*, scoped_ptr<Incident>)>
+ AddIncidentCallback;
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698