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

Unified Diff: components/user_prefs/tracked/mock_validation_delegate.h

Issue 2390213002: Revert of Send a TrackedPreference incident when registry pref validation fails. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « chrome/common/safe_browsing/csd.proto ('k') | components/user_prefs/tracked/mock_validation_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « chrome/common/safe_browsing/csd.proto ('k') | components/user_prefs/tracked/mock_validation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698