Fix call to all_fields instead of field

The current code has a minor bug on the generator that call
the wrong attribute field in the condition. Fix to
all_fields

Bug: 628043
Change-Id: Ib0339e0ad0a84d495acfac2a991eec48a2244c29
Reviewed-on: https://chromium-review.googlesource.com/575296
Reviewed-by: nainar <nainar@chromium.org>
Reviewed-by: Darren Shen <shend@chromium.org>
Reviewed-by: meade_UTC10 <meade@chromium.org>
Commit-Queue: Minh-Duc Nguyen <nmduc@google.com>
Cr-Commit-Position: refs/heads/master@{#487739}
1 file changed