commit | b8c214021901c7f18bf76f1fdb4cec6e8cf8db49 | [log] [tgz] |
---|---|---|
author | Daniel Erat <derat@google.com> | Wed Sep 30 14:25:50 2015 -0600 |
committer | Daniel Erat <derat@google.com> | Wed Sep 30 14:32:37 2015 -0600 |
tree | 4a54cf3284274cf2d59422eab73520987d409769 | |
parent | 1735db4f0706ec871937968301e26474db940856 [diff] |
Don't crash when logging if CommandLine is uninitialized. The base::CommandLine singleton is usually initialized from main(), but some gtest-based unit tests don't have control over that function. Guard CommandLine accesses in base/logging.cc to handle this gracefully. Bug: 24536569 Change-Id: If3eab0f36c28bb6b3cf3569c61c7d7cec5cf7b10