Skip to content

Commit

Permalink
Merge pull request #24517 from brave/webcompat-version
Browse files Browse the repository at this point in the history
Include browser version in webcompat reports
  • Loading branch information
DJAndries authored Jul 8, 2024
2 parents 1fcdd36 + 3268aa9 commit cf7f2d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/webcompat_reporter/browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ static_library("browser") {
"//brave/components/brave_shields/core/common:mojom",
"//brave/components/brave_stats/browser",
"//brave/components/constants",
"//brave/components/version_info",
"//brave/components/webcompat_reporter/buildflags",
"//content/public/browser",
"//net",
Expand Down
1 change: 1 addition & 0 deletions components/webcompat_reporter/browser/fields.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ inline constexpr char kLanguagesField[] = "languages";
inline constexpr char kLanguageFarblingField[] = "languageFarblingEnabled";
inline constexpr char kBraveVPNEnabledField[] = "braveVPNEnabled";
inline constexpr char kChannelField[] = "channel";
inline constexpr char kVersionField[] = "version";

inline constexpr char kSiteURLField[] = "url";
inline constexpr char kDomainField[] = "domain";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "base/json/json_writer.h"
#include "brave/components/brave_stats/browser/brave_stats_updater_util.h"
#include "brave/components/version_info/version_info.h"
#include "brave/components/webcompat_reporter/browser/fields.h"
#include "brave/components/webcompat_reporter/buildflags/buildflags.h"
#include "content/public/browser/browser_thread.h"
Expand Down Expand Up @@ -58,6 +59,9 @@ void WebcompatReportUploader::SubmitReport(const Report& report) {
report_details_dict.Set(kContactField, report.contact.Clone());

report_details_dict.Set(kChannelField, report.channel);
report_details_dict.Set(
kVersionField,
version_info::GetBraveVersionWithoutChromiumMajorVersion());
report_details_dict.Set(kShieldsEnabledField, report.shields_enabled);
report_details_dict.Set(kAdBlockSettingField, report.ad_block_setting);
report_details_dict.Set(kFPBlockSettingField, report.fp_block_setting);
Expand Down

0 comments on commit cf7f2d8

Please sign in to comment.