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

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

Issue 2719833002: Convert TrackedPreferenceValidationDelegate into a mojo interface. (Closed)
Patch Set: Created 3 years, 9 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/incident_reporting_service.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
index 2444e83e060fd11626b25a2dbe1fd45021da0ff5..a8449df91361b55de7a881b01a1bd8ed6f271378 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
@@ -38,10 +38,10 @@
#include "components/prefs/pref_service.h"
#include "components/safe_browsing_db/database_manager.h"
#include "components/safe_browsing_db/safe_browsing_prefs.h"
-#include "components/user_prefs/tracked/tracked_preference_validation_delegate.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "net/url_request/url_request_context_getter.h"
+#include "services/preferences/public/interfaces/tracked_preference_validation_delegate.mojom.h"
namespace safe_browsing {
@@ -366,14 +366,14 @@ IncidentReportingService::GetIncidentReceiver() {
return base::MakeUnique<Receiver>(receiver_weak_ptr_factory_.GetWeakPtr());
}
-std::unique_ptr<TrackedPreferenceValidationDelegate>
+std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>
IncidentReportingService::CreatePreferenceValidationDelegate(Profile* profile) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (profile->IsOffTheRecord())
- return std::unique_ptr<TrackedPreferenceValidationDelegate>();
- return std::unique_ptr<TrackedPreferenceValidationDelegate>(
- new PreferenceValidationDelegate(profile, GetIncidentReceiver()));
+ return std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>();
+ return base::MakeUnique<PreferenceValidationDelegate>(profile,
+ GetIncidentReceiver());
}
void IncidentReportingService::RegisterDelayedAnalysisCallback(

Powered by Google App Engine
This is Rietveld 408576698