Index: components/user_prefs/tracked/mock_validation_delegate.h |
diff --git a/components/user_prefs/tracked/mock_validation_delegate.h b/components/user_prefs/tracked/mock_validation_delegate.h |
index 2070c5a97ab18b7515b36fa85a61e20a0ea61017..0b8cb12ce436486192c7df7260af13b40b26aa18 100644 |
--- a/components/user_prefs/tracked/mock_validation_delegate.h |
+++ b/components/user_prefs/tracked/mock_validation_delegate.h |
@@ -20,21 +20,17 @@ |
class MockValidationDelegate : public TrackedPreferenceValidationDelegate { |
public: |
struct ValidationEvent { |
- ValidationEvent( |
- const std::string& path, |
- PrefHashStoreTransaction::ValueState state, |
- PrefHashStoreTransaction::ValueState external_validation_state, |
- bool is_personal, |
- PrefHashFilter::PrefTrackingStrategy tracking_strategy) |
+ ValidationEvent(const std::string& path, |
+ PrefHashStoreTransaction::ValueState state, |
+ bool is_personal, |
+ PrefHashFilter::PrefTrackingStrategy tracking_strategy) |
: pref_path(path), |
value_state(state), |
- external_validation_value_state(external_validation_state), |
is_personal(is_personal), |
strategy(tracking_strategy) {} |
std::string pref_path; |
PrefHashStoreTransaction::ValueState value_state; |
- PrefHashStoreTransaction::ValueState external_validation_value_state; |
bool is_personal; |
PrefHashFilter::PrefTrackingStrategy strategy; |
}; |
@@ -49,10 +45,6 @@ |
size_t CountValidationsOfState( |
PrefHashStoreTransaction::ValueState value_state) const; |
- // Returns the number of external validations of a given value state. |
- size_t CountExternalValidationsOfState( |
- PrefHashStoreTransaction::ValueState value_state) const; |
- |
// Returns the event for the preference with a given path. |
const ValidationEvent* GetEventForPath(const std::string& pref_path) const; |
@@ -61,24 +53,20 @@ |
const std::string& pref_path, |
const base::Value* value, |
PrefHashStoreTransaction::ValueState value_state, |
- PrefHashStoreTransaction::ValueState external_validation_value_state, |
bool is_personal) override; |
void OnSplitPreferenceValidation( |
const std::string& pref_path, |
const base::DictionaryValue* dict_value, |
const std::vector<std::string>& invalid_keys, |
PrefHashStoreTransaction::ValueState value_state, |
- PrefHashStoreTransaction::ValueState external_validation_value_state, |
bool is_personal) override; |
private: |
// Adds a new validation event. |
- void RecordValidation( |
- const std::string& pref_path, |
- PrefHashStoreTransaction::ValueState value_state, |
- PrefHashStoreTransaction::ValueState external_validation_value_state, |
- bool is_personal, |
- PrefHashFilter::PrefTrackingStrategy strategy); |
+ void RecordValidation(const std::string& pref_path, |
+ PrefHashStoreTransaction::ValueState value_state, |
+ bool is_personal, |
+ PrefHashFilter::PrefTrackingStrategy strategy); |
std::vector<ValidationEvent> validations_; |