Descriptioncros: Fix unit_tests crashes in GetBrand() on official builders
unit_tests do not have prefs, but branded builds on Chrome OS attempt to read
the brand code out of a null g_browser_process->local_state().
Instead, we now return an empty brand code in tests.
This reduces the number of crashing unit_tests on the official builders from
~300 to ~30.
BUG=430266
Committed: https://crrev.com/8747d18fb89ca9470a6e66caca6607a0c02f0682
Cr-Commit-Position: refs/heads/master@{#302733}
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|