DescriptionRefactoring: Avoid redundant checks in SingletonFor
SingletonFor(type, state) returns NULL and does nothing whenever SingletonFor(type) also return NULL. So checking this beforehand is redundant.
This is my first CL, so I also use it to get familiar with the system.
R=titzer@chromium.org
BUG=
Committed: https://crrev.com/9a65c0ef03c523f04fd35cf3e31033e99b79c622
Cr-Commit-Position: refs/heads/master@{#35285}
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|