Chromium Code Reviews| Index: components/signin/public/interfaces/account_id_traits.h |
| diff --git a/components/signin/public/interfaces/account_id_traits.h b/components/signin/public/interfaces/account_id_traits.h |
| index cc1d39de91773289c8fe34eaeb1a56d05b334390..a2107cbb30ba76df453df58e7313a8f1f023478b 100644 |
| --- a/components/signin/public/interfaces/account_id_traits.h |
| +++ b/components/signin/public/interfaces/account_id_traits.h |
| @@ -100,6 +100,10 @@ struct StructTraits<signin::mojom::AccountIdDataView, AccountId> { |
| return out->is_valid(); |
| } |
| + |
| + static bool IsNull(const AccountId& input) { return !input.is_valid(); } |
|
msarda
2017/03/23 10:48:57
I suppose these are standard naming conventions fo
blundell
2017/03/24 09:37:59
Yes. They're what allow a typemapped type to be de
|
| + |
| + static void SetToNull(AccountId* output) { *output = EmptyAccountId(); } |
| }; |
| } // namespace mojo |