| Index: services/preferences/public/cpp/preferences_struct_traits.h
|
| diff --git a/services/preferences/public/cpp/preferences_struct_traits.h b/services/preferences/public/cpp/preferences_struct_traits.h
|
| index d548d8faa38017e41d7e8f45db26cdf7b4cdedbc..568f37176180cc0098417d9ff73821df4bca6e41 100644
|
| --- a/services/preferences/public/cpp/preferences_struct_traits.h
|
| +++ b/services/preferences/public/cpp/preferences_struct_traits.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_PREFERENCES_STRUCT_TRAITS_H_
|
| #define SERVICES_PREFERENCES_PUBLIC_CPP_PREFERENCES_STRUCT_TRAITS_H_
|
|
|
| +#include "components/prefs/persistent_pref_store.h"
|
| #include "components/prefs/pref_value_store.h"
|
| #include "mojo/public/cpp/bindings/enum_traits.h"
|
| #include "services/preferences/public/interfaces/preferences.mojom-shared.h"
|
| @@ -21,6 +22,17 @@ struct EnumTraits<::prefs::mojom::PrefStoreType,
|
| PrefValueStore::PrefStoreType* output);
|
| };
|
|
|
| +template <>
|
| +struct EnumTraits<::prefs::mojom::PersistentPrefStoreConnector_ReadError,
|
| + ::PersistentPrefStore::PrefReadError> {
|
| + static prefs::mojom::PersistentPrefStoreConnector_ReadError ToMojom(
|
| + PersistentPrefStore::PrefReadError input);
|
| +
|
| + static bool FromMojom(
|
| + prefs::mojom::PersistentPrefStoreConnector_ReadError input,
|
| + PersistentPrefStore::PrefReadError* output);
|
| +};
|
| +
|
| } // namespace mojo
|
|
|
| #endif // SERVICES_PREFERENCES_PUBLIC_CPP_PREFERENCES_STRUCT_TRAITS_H_
|
|
|