DescriptionCleanup PushMessagingAppIdentifier
In particular, the IsValid method had a confusing dual purpose - it was
used both to sanity check the inputs, and to check whether the instances
returned by the Get methods were null (i.e. Get failed). It has been
split into is_null() and DCheckValid(). Note that having DCheckValid as
a method also gives better stacktraces than the old DCHECK(IsValid())
style, since stacktraces will indicate which check failed.
BUG=458592
Committed: https://crrev.com/db9cb0e5848645420e439277974b5aa379d83553
Cr-Commit-Position: refs/heads/master@{#329406}
Patch Set 1 #
Total comments: 14
Patch Set 2 : Fix test #Patch Set 3 : Address peter's comments & add DCHECKS to getters #Patch Set 4 : Undo accidental test change #
Messages
Total messages: 9 (3 generated)
|