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

Unified Diff: components/user_prefs/tracked/tracked_split_preference.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: components/user_prefs/tracked/tracked_split_preference.cc
diff --git a/components/user_prefs/tracked/tracked_split_preference.cc b/components/user_prefs/tracked/tracked_split_preference.cc
index 2094d97b71ec6b8ee4dea42dd030ffdedf9ec44a..c2af4d61a4406f0df2733f1c8600da307b6325b0 100644
--- a/components/user_prefs/tracked/tracked_split_preference.cc
+++ b/components/user_prefs/tracked/tracked_split_preference.cc
@@ -9,7 +9,7 @@
#include "base/logging.h"
#include "base/values.h"
#include "components/user_prefs/tracked/pref_hash_store_transaction.h"
-#include "components/user_prefs/tracked/tracked_preference_validation_delegate.h"
+#include "services/preferences/public/interfaces/tracked_preference_validation_delegate.mojom.h"
TrackedSplitPreference::TrackedSplitPreference(
const std::string& pref_path,
@@ -17,15 +17,14 @@ TrackedSplitPreference::TrackedSplitPreference(
size_t reporting_ids_count,
PrefHashFilter::EnforcementLevel enforcement_level,
PrefHashFilter::ValueType value_type,
- TrackedPreferenceValidationDelegate* delegate)
+ prefs::mojom::TrackedPreferenceValidationDelegate* delegate)
: pref_path_(pref_path),
helper_(pref_path,
reporting_id,
reporting_ids_count,
enforcement_level,
value_type),
- delegate_(delegate) {
-}
+ delegate_(delegate) {}
TrackedPreferenceType TrackedSplitPreference::GetType() const {
return TrackedPreferenceType::SPLIT;
@@ -77,8 +76,8 @@ bool TrackedSplitPreference::EnforceAndReport(
if (delegate_) {
delegate_->OnSplitPreferenceValidation(
- pref_path_, dict_value, invalid_keys, external_validation_invalid_keys,
- value_state, external_validation_value_state, helper_.IsPersonal());
+ pref_path_, invalid_keys, external_validation_invalid_keys, value_state,
+ external_validation_value_state, helper_.IsPersonal());
}
TrackedPreferenceHelper::ResetAction reset_action =
helper_.GetAction(value_state);

Powered by Google App Engine
This is Rietveld 408576698