Commit 4c98e3a8 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

cros: Make GetChannelName() call GetChannel().

This is a late follow-up to
https://chromium-review.googlesource.com/c/chromium/src/+/1287850 --
since GetChannelName() now depends on GetChannel() being called
previously, call it instead of relying on something else having
called it.

Probably a no-op in practice, but it makes the code more reliable
and look less surprising.

Bug: none
Change-Id: Ie4e2c791db52f590d44d906fb5b0a42f521d427e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1887270
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710412}
parent 238ba72f
......@@ -33,7 +33,7 @@ void SetChannel(const std::string& channel) {
std::string GetChannelName() {
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
switch (g_chromeos_channel) {
switch (GetChannel()) {
case version_info::Channel::STABLE:
return std::string();
case version_info::Channel::BETA:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment