Skip to content

Commit

Permalink
[ads] Add SmartNTT operating system condition matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
tmancey committed Oct 29, 2024
1 parent db7611b commit b6fc1b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/brave_ads/ads_service_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ base::Value::Dict AdsServiceDelegate::GetVirtualPrefs() {
}

return base::Value::Dict()
.Set("[virtual]:operating_system.name", version_info::GetOSType())
.Set("[virtual]:build_channel.name",
version_info::GetChannelString(chrome::GetChannel()))
.Set("[virtual]:browser_version", version_info::GetVersionNumber())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ class PrefProviderInterface;
// profile or local state preferences. Virtual preference path keys should be
// prefixed with "[virtual]:".
//
// "[virtual]:operating_system.name" retrieves the operating system, returning
// one of the following values: "Windows", "Mac OS X", "Linux", "Android",
// "iOS", or "Unknown".
//
// "[virtual]:build_channel.name" retrieves the build channel of the browser,
// returning one of the following values: "stable", "beta", "dev", "nightly", or
// "unknown".
Expand Down

0 comments on commit b6fc1b8

Please sign in to comment.