Skip to content

Commit

Permalink
Fix Cobalt condition for UA (#4347)
Browse files Browse the repository at this point in the history
Use #if BUILDFLAG(IS_COBALT) to turn on IS_COBALT c++ macro

b/376752034
  • Loading branch information
haozheng-cobalt authored Nov 1, 2024
1 parent 5b5661d commit 8009582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/shell/browser/shell_content_browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ std::unique_ptr<PrefService> CreateLocalState() {

std::string GetShellUserAgent() {
// TODO(cobalt b/376147838): Revert the changes here and instead rely on coablt_content_browser_client.cc for UA.
#if defined(IS_COBALT)
#if BUILDFLAG(IS_COBALT)
return "Mozilla/5.0 (LINUX) Cobalt/26.lts.10.0000001-gold (unlike Gecko) v8/8.8.278.8-jit gles Evergreen/4.10.2 Evergreen-Full Evergreen-Uncompressed Starboard/15, odm_TV_chipset_2024/fw-01-23.45 (brand, model)";
#else
if (base::FeatureList::IsEnabled(blink::features::kFullUserAgent))
Expand Down

0 comments on commit 8009582

Please sign in to comment.