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

Unified Diff: services/preferences/public/cpp/tracked/mock_validation_delegate.h

Issue 2803023005: Switch base::Value typemapping to be by value instead of by unique_ptr.
Patch Set: Created 3 years, 8 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: services/preferences/public/cpp/tracked/mock_validation_delegate.h
diff --git a/services/preferences/public/cpp/tracked/mock_validation_delegate.h b/services/preferences/public/cpp/tracked/mock_validation_delegate.h
index 5538c69301fd5931237b525c0955b67ea8a19238..5c5ef68eeb82ebb4036c522246a5576bc45658c6 100644
--- a/services/preferences/public/cpp/tracked/mock_validation_delegate.h
+++ b/services/preferences/public/cpp/tracked/mock_validation_delegate.h
@@ -92,7 +92,7 @@ class MockValidationDelegate
// TrackedPreferenceValidationDelegate implementation.
void OnAtomicPreferenceValidation(
const std::string& pref_path,
- std::unique_ptr<base::Value> value,
+ const base::Optional<base::Value>& value,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState value_state,
prefs::mojom::TrackedPreferenceValidationDelegate::ValueState
external_validation_value_state,

Powered by Google App Engine
This is Rietveld 408576698